Skip to content

Commit 754c841

Browse files
author
Alexis
committed
fix(ErrorModal): add proptypes
1 parent ecbfbee commit 754c841

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

client/modules/IDE/components/ErrorModal.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,14 @@ const ErrorModal = ({ type, service, closeModal }) => {
6969
};
7070

7171
ErrorModal.propTypes = {
72-
type: PropTypes.string.isRequired,
72+
type: PropTypes.oneOf([
73+
'forceAuthentication',
74+
'staleSession',
75+
'staleProject',
76+
'oauthError'
77+
]).isRequired,
7378
closeModal: PropTypes.func.isRequired,
74-
service: PropTypes.string
79+
service: PropTypes.oneOf(['google', 'github'])
7580
};
7681

7782
ErrorModal.defaultProps = {

0 commit comments

Comments
 (0)