diff options
Diffstat (limited to 'app/javascript/mastodon/components/attachment_list.js')
-rw-r--r-- | app/javascript/mastodon/components/attachment_list.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/javascript/mastodon/components/attachment_list.js b/app/javascript/mastodon/components/attachment_list.js index 6df578b77..f6449e2c0 100644 --- a/app/javascript/mastodon/components/attachment_list.js +++ b/app/javascript/mastodon/components/attachment_list.js @@ -5,6 +5,10 @@ const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; class AttachmentList extends React.PureComponent { + static propTypes = { + media: ImmutablePropTypes.list.isRequired + }; + render () { const { media } = this.props; @@ -24,10 +28,7 @@ class AttachmentList extends React.PureComponent { </div> ); } -} -AttachmentList.propTypes = { - media: ImmutablePropTypes.list.isRequired -}; +} export default AttachmentList; |