diff options
author | alpaca-tc <alpaca-tc@alpaca.tc> | 2017-05-06 04:31:20 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-05 21:31:20 +0200 |
commit | d1290fbd8f0bbdcef7c0d7eec2b8865ddf9ae804 (patch) | |
tree | 551f8b9aa9b33f88571ef50aea5b9577470d683f /app | |
parent | 484c9709b67685c95de351a39e3dfb140acd3681 (diff) |
Fixes propTypes warning introduced by #2774 (#2824)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/compose/containers/warning_container.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/containers/warning_container.js b/app/javascript/mastodon/features/compose/containers/warning_container.js index 8e5c8405f..a5fb8d79d 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); |