diff options
Diffstat (limited to 'webapp/components/post_view/post_view_cache.jsx')
-rw-r--r-- | webapp/components/post_view/post_view_cache.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/components/post_view/post_view_cache.jsx b/webapp/components/post_view/post_view_cache.jsx index beb20360a..b8ae39e4a 100644 --- a/webapp/components/post_view/post_view_cache.jsx +++ b/webapp/components/post_view/post_view_cache.jsx @@ -6,14 +6,16 @@ import PostViewController from './post_view_controller.jsx'; import ChannelStore from 'stores/channel_store.jsx'; import UserStore from 'stores/user_store.jsx'; +import PropTypes from 'prop-types'; + import React from 'react'; const MAXIMUM_CACHED_VIEWS = 5; export default class PostViewCache extends React.Component { static propTypes = { - actions: React.PropTypes.shape({ - viewChannel: React.PropTypes.func.isRequired + actions: PropTypes.shape({ + viewChannel: PropTypes.func.isRequired }).isRequired } |