diff options
Diffstat (limited to 'app/javascript/mastodon/features/notifications/components/notification.js')
-rw-r--r-- | app/javascript/mastodon/features/notifications/components/notification.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/mastodon/features/notifications/components/notification.js b/app/javascript/mastodon/features/notifications/components/notification.js index 7b11fea24..48a0e0381 100644 --- a/app/javascript/mastodon/features/notifications/components/notification.js +++ b/app/javascript/mastodon/features/notifications/components/notification.js @@ -11,6 +11,10 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; class Notification extends ImmutablePureComponent { + static propTypes = { + notification: ImmutablePropTypes.map.isRequired + }; + renderFollow (account, link) { return ( <div className='notification notification-follow'> @@ -82,8 +86,4 @@ class Notification extends ImmutablePureComponent { } -Notification.propTypes = { - notification: ImmutablePropTypes.map.isRequired -}; - export default Notification; |