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 = {
|
NewFileForm.propTypes = {
|
||||||
fields: PropTypes.shape({
|
fields: PropTypes.shape({
|
||||||
name: PropTypes.string.isRequired
|
name: PropTypes.object.isRequired
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
handleSubmit: PropTypes.func.isRequired,
|
handleSubmit: PropTypes.func.isRequired,
|
||||||
createFile: PropTypes.func.isRequired
|
createFile: PropTypes.func.isRequired
|
||||||
|
|
|
@ -27,7 +27,7 @@ class NewFolderForm extends React.Component {
|
||||||
|
|
||||||
NewFolderForm.propTypes = {
|
NewFolderForm.propTypes = {
|
||||||
fields: PropTypes.shape({
|
fields: PropTypes.shape({
|
||||||
name: PropTypes.string.isRequired
|
name: PropTypes.object.isRequired
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
handleSubmit: PropTypes.func.isRequired,
|
handleSubmit: PropTypes.func.isRequired,
|
||||||
createFolder: PropTypes.func.isRequired
|
createFolder: PropTypes.func.isRequired
|
||||||
|
|
|
@ -31,8 +31,8 @@ function LoginForm(props) {
|
||||||
|
|
||||||
LoginForm.propTypes = {
|
LoginForm.propTypes = {
|
||||||
fields: PropTypes.shape({
|
fields: PropTypes.shape({
|
||||||
email: PropTypes.string.isRequired,
|
email: PropTypes.object.isRequired,
|
||||||
password: PropTypes.string.isRequired
|
password: PropTypes.object.isRequired
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
handleSubmit: PropTypes.func.isRequired,
|
handleSubmit: PropTypes.func.isRequired,
|
||||||
validateAndLoginUser: PropTypes.func.isRequired,
|
validateAndLoginUser: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -51,10 +51,10 @@ function SignupForm(props) {
|
||||||
|
|
||||||
SignupForm.propTypes = {
|
SignupForm.propTypes = {
|
||||||
fields: PropTypes.shape({
|
fields: PropTypes.shape({
|
||||||
username: PropTypes.string.isRequired,
|
username: PropTypes.object.isRequired,
|
||||||
email: PropTypes.string.isRequired,
|
email: PropTypes.object.isRequired,
|
||||||
password: PropTypes.string.isRequired,
|
password: PropTypes.object.isRequired,
|
||||||
confirmPassword: PropTypes.string.isRequired
|
confirmPassword: PropTypes.object.isRequired
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
handleSubmit: PropTypes.func.isRequired,
|
handleSubmit: PropTypes.func.isRequired,
|
||||||
signUpUser: PropTypes.func.isRequired,
|
signUpUser: PropTypes.func.isRequired,
|
||||||
|
|
Loading…
Reference in a new issue