From: Nolan Lawson Date: Fri, 22 Sep 2017 15:50:29 +0000 (-0700) Subject: Fix PropTypes.oneOfType() warning (#5041) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b01ab55ed83faddef4cc5c67ebbe5f72c9cad832;p=mastodon.git Fix PropTypes.oneOfType() warning (#5041) --- diff --git a/app/javascript/mastodon/features/ui/components/column_loading.js b/app/javascript/mastodon/features/ui/components/column_loading.js index 4834f0038..9503a7a1a 100644 --- a/app/javascript/mastodon/features/ui/components/column_loading.js +++ b/app/javascript/mastodon/features/ui/components/column_loading.js @@ -8,7 +8,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { static propTypes = { - title: PropTypes.oneOfType(PropTypes.node, PropTypes.string), + title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]), icon: PropTypes.string, };