mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -05:00
Merge pull request #111 from jLouzado/master
Removed manual calls to React.PropTypes
This commit is contained in:
commit
ef7621f80b
5 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Accounts } from 'meteor/accounts-base';
|
||||
|
||||
let Link;
|
||||
try { Link = require('react-router').Link; } catch(e) {}
|
||||
|
||||
|
@ -28,6 +29,7 @@ export class Button extends React.Component {
|
|||
onClick={ onClick }>{ label }</button>;
|
||||
}
|
||||
}
|
||||
|
||||
Button.propTypes = {
|
||||
onClick: PropTypes.func
|
||||
};
|
||||
|
|
|
@ -69,6 +69,7 @@ export class Field extends React.Component {
|
|||
) : null;
|
||||
}
|
||||
}
|
||||
|
||||
Field.propTypes = {
|
||||
onChange: PropTypes.func
|
||||
};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Accounts } from 'meteor/accounts-base';
|
||||
|
||||
import './Fields.jsx';
|
||||
import './Buttons.jsx';
|
||||
import './FormMessage.jsx';
|
||||
|
@ -47,6 +48,7 @@ export class Form extends React.Component {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
Form.propTypes = {
|
||||
oauthServices: PropTypes.object,
|
||||
fields: PropTypes.object.isRequired,
|
||||
|
|
|
@ -40,6 +40,7 @@ export class PasswordOrService extends React.Component {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
PasswordOrService.propTypes = {
|
||||
oauthServices: PropTypes.object
|
||||
};
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
"url": "https://github.com/studiointeract/accounts-ui/issues"
|
||||
},
|
||||
"homepage": "https://github.com/studiointeract/accounts-ui",
|
||||
"dependencies": {},
|
||||
"dependencies": {
|
||||
"prop-types": "^15.5.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^15.0.0",
|
||||
"react-dom": "^15.0.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue