Skip to content

Commit 9e8aaa5

Browse files
committed
adjust propTypes to set isRequired where relevant
1 parent defe2d5 commit 9e8aaa5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/cloud-manager-hoc.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ const cloudManagerHOC = function (WrappedComponent) {
124124
}
125125

126126
CloudManager.propTypes = {
127-
canSave: PropTypes.bool,
127+
canSave: PropTypes.bool.isRequired,
128128
cloudHost: PropTypes.string,
129-
hasCloudPermission: PropTypes.bool,
130-
hasEverEnteredEditor: PropTypes.bool,
131-
isShowingWithId: PropTypes.bool,
132-
onShowCloudInfo: PropTypes.func,
129+
hasCloudPermission: PropTypes.bool.isRequired,
130+
hasEverEnteredEditor: PropTypes.bool.isRequired,
131+
isShowingWithId: PropTypes.bool.isRequired,
132+
onShowCloudInfo: PropTypes.func.isRequired,
133133
projectId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
134134
username: PropTypes.string,
135135
vm: PropTypes.instanceOf(VM).isRequired

0 commit comments

Comments
 (0)