Fixes propTypes warning introduced by #2774 (#2824)

th-downstream
alpaca-tc 7 years ago committed by Eugen Rochko
parent 5393dbf4a2
commit 672de1c21e

@ -1,4 +1,5 @@
import React from 'react'; import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import Warning from '../components/warning'; import Warning from '../components/warning';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
@ -44,7 +45,7 @@ const WarningWrapper = ({ needsLeakWarning, needsLockWarning, mentionedDomains }
WarningWrapper.propTypes = { WarningWrapper.propTypes = {
needsLeakWarning: PropTypes.bool, needsLeakWarning: PropTypes.bool,
needsLockWarning: PropTypes.bool, needsLockWarning: PropTypes.bool,
mentionedDomains: PropTypes.array.isRequired, mentionedDomains: ImmutablePropTypes.orderedSet.isRequired,
}; };
export default connect(mapStateToProps)(WarningWrapper); export default connect(mapStateToProps)(WarningWrapper);

Loading…
Cancel
Save