-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from ConsenSys/development
merge v0.12.0 release
- Loading branch information
Showing
57 changed files
with
3,000 additions
and
11,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React, { Component } from 'react'; | ||
import { Form, Button } from 'rimble-ui'; | ||
|
||
class TestForm extends Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { validated: false }; | ||
} | ||
|
||
handleSubmit = e => { | ||
e.preventDefault(); | ||
this.setState({ validated: true }); | ||
}; | ||
|
||
handleValidation = e => { | ||
e.target.parentNode.classList.add('was-validated'); | ||
}; | ||
|
||
render() { | ||
return ( | ||
<Form onSubmit={this.handleSubmit}> | ||
<Form.Field label="Email" width={1}> | ||
<Form.Input | ||
type="email" | ||
required | ||
width={1} | ||
onChange={this.handleValidation} | ||
/> | ||
</Form.Field> | ||
<Form.Field validated={this.state.validated} label="Password" width={1}> | ||
<Form.Input | ||
type="password" | ||
required | ||
width={1} | ||
onChange={this.handleValidation} | ||
/> | ||
</Form.Field> | ||
|
||
<Form.Check | ||
label="Remember me?" | ||
mb={3} | ||
onChange={this.handleValidation} | ||
/> | ||
|
||
<Button type="submit" width={1}> | ||
Sign Up | ||
</Button> | ||
</Form> | ||
); | ||
} | ||
} | ||
|
||
export default TestForm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.