From 52ef65bdc6660d1055b269949f045f997224fcb2 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 31 May 2017 09:14:26 +0900 Subject: [PATCH] Change PureComponent to ImmutablePureComponent (#3460) * Change PureComponent to ImmutablePureComponent Change PureComponent to ImmutablePureComponent in AttachmentList. * rm React. --- app/javascript/mastodon/components/attachment_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/attachment_list.js b/app/javascript/mastodon/components/attachment_list.js index 54d3643bd9..a57c25ad0b 100644 --- a/app/javascript/mastodon/components/attachment_list.js +++ b/app/javascript/mastodon/components/attachment_list.js @@ -1,9 +1,10 @@ import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; +import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; -class AttachmentList extends React.PureComponent { +class AttachmentList extends ImmutablePureComponent { static propTypes = { media: ImmutablePropTypes.list.isRequired,