]> cat aescling's git repositories - mastodon.git/commitdiff
Fixes propTypes warning introduced by #2774 (#2824)
authoralpaca-tc <alpaca-tc@alpaca.tc>
Fri, 5 May 2017 19:31:20 +0000 (04:31 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 5 May 2017 19:31:20 +0000 (21:31 +0200)
app/javascript/mastodon/features/compose/containers/warning_container.js

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