Skip to content

Commit 0e1066b

Browse files
Wolfjawankkarimi
authored andcommitted
mandatory filds in the form (#67)
1 parent fe1929e commit 0e1066b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/App.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ body {
2323
-webkit-animation: spin 2s linear infinite;
2424
animation: spin 2s linear infinite;
2525
}
26+
button:disabled {
27+
background: gray;
28+
}

src/Components/forms/Acknowledgement.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export default ({ onChange, agreeToTOU, agreeToReceiveCommunication }) => {
5454
<strong className="text-danger">*</strong>
5555
</Label>
5656
</FormGroup>
57+
<p className="pt-2">
58+
<strong className="text-danger">*</strong> fields are mandatory
59+
</p>
5760
</Fragment>
5861
)
5962
}

src/Components/forms/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989
border: none !important;
9090
}
9191
.volunteer-submit-btn {
92-
background: #03a9f4;
92+
background-color: #03a9f4;
9393
border-radius: 5px;
9494
letter-spacing: 0.75px;
9595
text-transform: capitalize;
9696
color: #ffffff;
97-
margin: 40px 0;
97+
margin: 20px 0;
9898
width: 140px;
9999
}
100100
.form-acknowledgement-header {

src/Components/forms/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ class Forms extends Component {
206206
/>
207207
<Acknowledgement onChange={this.onChange} {...this.state} />
208208
<button
209+
disabled={disabled || !agreeToTOU || !agreeToReceiveCommunication}
209210
className="btn volunteer-submit-btn"
210211
type="submit"
211-
disabled={disabled || !agreeToTOU || !agreeToReceiveCommunication}
212212
>
213213
Submit
214214
</button>

0 commit comments

Comments
 (0)