File tree 10 files changed +19
-19
lines changed
10 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const ActionStrip = ({ actions }) => (
38
38
39
39
ActionStrip . propTypes = {
40
40
actions : PropTypes . arrayOf ( PropTypes . shape ( {
41
- icon : PropTypes . any ,
41
+ icon : PropTypes . component ,
42
42
aria : PropTypes . string . isRequired ,
43
43
action : PropTypes . func . isRequired ,
44
44
inverted : PropTypes . bool
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class NewFileForm extends React.Component {
58
58
59
59
NewFileForm . propTypes = {
60
60
fields : PropTypes . shape ( {
61
- name : PropTypes . object . isRequired
61
+ name : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired
62
62
} ) . isRequired ,
63
63
handleSubmit : PropTypes . func . isRequired ,
64
64
createFile : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class NewFolderForm extends React.Component {
56
56
57
57
NewFolderForm . propTypes = {
58
58
fields : PropTypes . shape ( {
59
- name : PropTypes . object . isRequired
59
+ name : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired
60
60
} ) . isRequired ,
61
61
handleSubmit : PropTypes . func . isRequired ,
62
62
createFolder : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ IDEView.propTypes = {
495
495
updatedAt : PropTypes . string ,
496
496
} ) . isRequired ,
497
497
editorAccessibility : PropTypes . shape ( {
498
- lintMessages : PropTypes . array . isRequired , // eslint-disable-line
498
+ lintMessages : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
499
499
} ) . isRequired ,
500
500
preferences : PropTypes . shape ( {
501
501
autosave : PropTypes . bool . isRequired ,
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import CopyableInput from '../../IDE/components/CopyableInput';
7
7
import APIKeyList from './APIKeyList' ;
8
8
9
9
export const APIKeyPropType = PropTypes . shape ( {
10
- id : PropTypes . object . isRequired , // eslint-disable-line
11
- token : PropTypes . object , // eslint-disable-line
10
+ id : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
11
+ token : PropTypes . objectOf ( PropTypes . shape ( ) ) ,
12
12
label : PropTypes . string . isRequired ,
13
13
createdAt : PropTypes . string . isRequired ,
14
14
lastUsedAt : PropTypes . string
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ function AccountForm(props) {
109
109
110
110
AccountForm . propTypes = {
111
111
fields : PropTypes . shape ( {
112
- username : PropTypes . object . isRequired , // eslint-disable-line
113
- email : PropTypes . object . isRequired , // eslint-disable-line
114
- currentPassword : PropTypes . object . isRequired , // eslint-disable-line
115
- newPassword : PropTypes . object . isRequired , // eslint-disable-line
112
+ username : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
113
+ email : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
114
+ currentPassword : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
115
+ newPassword : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
116
116
} ) . isRequired ,
117
117
user : PropTypes . shape ( {
118
118
verified : PropTypes . string . isRequired ,
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ function LoginForm(props) {
54
54
55
55
LoginForm . propTypes = {
56
56
fields : PropTypes . shape ( {
57
- email : PropTypes . object . isRequired , // eslint-disable-line
58
- password : PropTypes . object . isRequired , // eslint-disable-line
57
+ email : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
58
+ password : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
59
59
} ) . isRequired ,
60
60
handleSubmit : PropTypes . func . isRequired ,
61
61
validateAndLoginUser : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ function NewPasswordForm(props) {
47
47
48
48
NewPasswordForm . propTypes = {
49
49
fields : PropTypes . shape ( {
50
- password : PropTypes . object . isRequired , // eslint-disable-line
51
- confirmPassword : PropTypes . object . isRequired , // eslint-disable-line
50
+ password : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
51
+ confirmPassword : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
52
52
} ) . isRequired ,
53
53
handleSubmit : PropTypes . func . isRequired ,
54
54
updatePassword : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function ResetPasswordForm(props) {
37
37
38
38
ResetPasswordForm . propTypes = {
39
39
fields : PropTypes . shape ( {
40
- email : PropTypes . object . isRequired
40
+ email : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired
41
41
} ) . isRequired ,
42
42
handleSubmit : PropTypes . func . isRequired ,
43
43
initiateResetPassword : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ function SignupForm(props) {
83
83
84
84
SignupForm . propTypes = {
85
85
fields : PropTypes . shape ( {
86
- username : PropTypes . object . isRequired , // eslint-disable-line
87
- email : PropTypes . object . isRequired , // eslint-disable-line
88
- password : PropTypes . object . isRequired , // eslint-disable-line
89
- confirmPassword : PropTypes . object . isRequired , // eslint-disable-line
86
+ username : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
87
+ email : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
88
+ password : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
89
+ confirmPassword : PropTypes . objectOf ( PropTypes . shape ( ) ) . isRequired ,
90
90
} ) . isRequired ,
91
91
handleSubmit : PropTypes . func . isRequired ,
92
92
signUpUser : PropTypes . func . isRequired ,
You can’t perform that action at this time.
0 commit comments