Add second check of disabling button unless conditions met
This commit is contained in:
parent
76113ace96
commit
fcdc2339d7
|
@ -76,7 +76,12 @@ export function Signup ( props ) {
|
||||||
onChange={ (evt) => setUserpassword(evt.target.value) }
|
onChange={ (evt) => setUserpassword(evt.target.value) }
|
||||||
/>
|
/>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
<Button variant="primary" className="mt-3 w-100" type="submit">Sign up</Button>
|
<Button
|
||||||
|
variant="primary"
|
||||||
|
className="mt-3 w-100"
|
||||||
|
type="submit">Sign up
|
||||||
|
disabled={ !(validemail && validpassword && validusername) ? false : true }
|
||||||
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
Loading…
Reference in New Issue