fix proptypes for redux forms
This commit is contained in:
parent
9d3bcf2a15
commit
fa518f028a
4 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ class NewFileForm extends React.Component {
|
|||
|
||||
NewFileForm.propTypes = {
|
||||
fields: PropTypes.shape({
|
||||
name: PropTypes.string.isRequired
|
||||
name: PropTypes.object.isRequired
|
||||
}).isRequired,
|
||||
handleSubmit: PropTypes.func.isRequired,
|
||||
createFile: PropTypes.func.isRequired
|
||||
|
|
|
@ -27,7 +27,7 @@ class NewFolderForm extends React.Component {
|
|||
|
||||
NewFolderForm.propTypes = {
|
||||
fields: PropTypes.shape({
|
||||
name: PropTypes.string.isRequired
|
||||
name: PropTypes.object.isRequired
|
||||
}).isRequired,
|
||||
handleSubmit: PropTypes.func.isRequired,
|
||||
createFolder: PropTypes.func.isRequired
|
||||
|
|
|
@ -31,8 +31,8 @@ function LoginForm(props) {
|
|||
|
||||
LoginForm.propTypes = {
|
||||
fields: PropTypes.shape({
|
||||
email: PropTypes.string.isRequired,
|
||||
password: PropTypes.string.isRequired
|
||||
email: PropTypes.object.isRequired,
|
||||
password: PropTypes.object.isRequired
|
||||
}).isRequired,
|
||||
handleSubmit: PropTypes.func.isRequired,
|
||||
validateAndLoginUser: PropTypes.func.isRequired,
|
||||
|
|
|
@ -51,10 +51,10 @@ function SignupForm(props) {
|
|||
|
||||
SignupForm.propTypes = {
|
||||
fields: PropTypes.shape({
|
||||
username: PropTypes.string.isRequired,
|
||||
email: PropTypes.string.isRequired,
|
||||
password: PropTypes.string.isRequired,
|
||||
confirmPassword: PropTypes.string.isRequired
|
||||
username: PropTypes.object.isRequired,
|
||||
email: PropTypes.object.isRequired,
|
||||
password: PropTypes.object.isRequired,
|
||||
confirmPassword: PropTypes.object.isRequired
|
||||
}).isRequired,
|
||||
handleSubmit: PropTypes.func.isRequired,
|
||||
signUpUser: PropTypes.func.isRequired,
|
||||
|
|
Loading…
Reference in a new issue