Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit e247bc6

Browse files
billy-lerickr
authored andcommitted
#76 styled error message into ul on signup page
1 parent 7540ea6 commit e247bc6

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/scenes/home/signup/signup.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@
3232
width: 100%;
3333
}
3434

35+
.errorList {
36+
align-self: center;
37+
color: #ff665A;
38+
font-size: 1.5rem;
39+
font-weight: 800;
40+
list-style-position: inside;
41+
margin-bottom: 12px;
42+
margin-top: 12px;
43+
padding: 0;
44+
}
45+
46+
.errorMessage {
47+
padding-left: 20px;
48+
}
49+
3550
@media screen and (max-width: 599px) {
3651
.signupForm {
3752
max-width: 298px;

src/scenes/home/signup/signup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ class SignUp extends Component {
125125
id="passwordConfirm" placeholder="Confirm Password"
126126
onChange={this.onConfirmPasswordChange} validateFunc={this.validatePasswordConfirm}
127127
/>
128-
{this.state.error && <span>There was an error joining Operation Code: {this.state.error}</span>}
128+
{this.state.error ? <ul className={styles.errorList}>There was an error joining Operation Code:
129+
<li className={styles.errorMessage}>{this.state.error}</li>
130+
</ul> : null }
129131
{this.state.success && <Redirect to="/thanks" />}
130132
<FormButton className={styles.joinButton} text="Join" onClick={this.handleOnClick} theme="red" />
131133
</Form>

0 commit comments

Comments
 (0)