diff options
Diffstat (limited to 'app/javascript/mastodon/features/home_timeline/index.js')
-rw-r--r-- | app/javascript/mastodon/features/home_timeline/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/home_timeline/index.js b/app/javascript/mastodon/features/home_timeline/index.js index d6bfef8cd..2cb6c5c84 100644 --- a/app/javascript/mastodon/features/home_timeline/index.js +++ b/app/javascript/mastodon/features/home_timeline/index.js @@ -18,6 +18,12 @@ const mapStateToProps = state => ({ class HomeTimeline extends React.PureComponent { + static propTypes = { + intl: PropTypes.object.isRequired, + hasUnread: PropTypes.bool, + hasFollows: PropTypes.bool + }; + render () { const { intl, hasUnread, hasFollows } = this.props; @@ -45,10 +51,4 @@ class HomeTimeline extends React.PureComponent { } -HomeTimeline.propTypes = { - intl: PropTypes.object.isRequired, - hasUnread: PropTypes.bool, - hasFollows: PropTypes.bool -}; - export default connect(mapStateToProps)(injectIntl(HomeTimeline)); |