commit: d1290fbd8f0bbdcef7c0d7eec2b8865ddf9ae804
parent: 484c9709b67685c95de351a39e3dfb140acd3681
Author: alpaca-tc <alpaca-tc@alpaca.tc>
Date: Sat, 6 May 2017 04:31:20 +0900
Fixes propTypes warning introduced by #2774 (#2824)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/javascript/mastodon/features/compose/containers/warning_container.js b/app/javascript/mastodon/features/compose/containers/warning_container.js
@@ -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);