From b01ab55ed83faddef4cc5c67ebbe5f72c9cad832 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 22 Sep 2017 08:50:29 -0700 Subject: [PATCH] Fix PropTypes.oneOfType() warning (#5041) --- .../mastodon/features/ui/components/column_loading.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };