mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -05:00
Change for Form.jsx as well
* credit to @serut for the find
This commit is contained in:
parent
9b9943bebc
commit
4e751c5774
1 changed files with 8 additions and 7 deletions
|
@ -9,6 +9,14 @@ import './SocialButtons.jsx';
|
|||
import './FormMessages.jsx';
|
||||
|
||||
export class Form extends React.Component {
|
||||
propTypes: {
|
||||
oauthServices: React.PropTypes.object,
|
||||
fields: React.PropTypes.object.isRequired,
|
||||
buttons: React.PropTypes.object.isRequired,
|
||||
error: React.PropTypes.string,
|
||||
ready: React.PropTypes.bool
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
let form = this.form;
|
||||
if (form) {
|
||||
|
@ -45,12 +53,5 @@ export class Form extends React.Component {
|
|||
);
|
||||
}
|
||||
}
|
||||
Form.propTypes = {
|
||||
oauthServices: React.PropTypes.object,
|
||||
fields: React.PropTypes.object.isRequired,
|
||||
buttons: React.PropTypes.object.isRequired,
|
||||
error: React.PropTypes.string,
|
||||
ready: React.PropTypes.bool
|
||||
};
|
||||
|
||||
Accounts.ui.Form = Form;
|
||||
|
|
Loading…
Add table
Reference in a new issue