From 672de1c21ec49d4f214cd0a40e1e9c331feb0603 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Sat, 6 May 2017 04:31:20 +0900 Subject: [PATCH] Fixes propTypes warning introduced by #2774 (#2824) --- .../mastodon/features/compose/containers/warning_container.js | 3 ++- 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 index 8e5c8405f8..a5fb8d79dd 100644 --- 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);