]> cat aescling's git repositories - mastodon.git/commitdiff
Fix PropTypes.oneOfType() warning (#5041)
authorNolan Lawson <nolan@nolanlawson.com>
Fri, 22 Sep 2017 15:50:29 +0000 (08:50 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 22 Sep 2017 15:50:29 +0000 (17:50 +0200)
app/javascript/mastodon/features/ui/components/column_loading.js

index 4834f00387e91864efc654491d9fe79526927b86..9503a7a1ac60da8b1c7425258020f9c07f241ce6 100644 (file)
@@ -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,
   };