about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/attachment_list.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-31 09:14:26 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-31 02:14:26 +0200
commitb1d4b74a44c75cdee8c7faa88e3b5c3396acfa5a (patch)
treedf203027ecb3df0f4614529782ee424b94c13d01 /app/javascript/mastodon/components/attachment_list.js
parentbfdf47bc989d3d690fbf003f0c6503c3c39b834e (diff)
Change PureComponent to ImmutablePureComponent (#3460)
* Change PureComponent to ImmutablePureComponent

Change PureComponent to ImmutablePureComponent in AttachmentList.

* rm React.
Diffstat (limited to 'app/javascript/mastodon/components/attachment_list.js')
-rw-r--r--app/javascript/mastodon/components/attachment_list.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/attachment_list.js b/app/javascript/mastodon/components/attachment_list.js
index 54d3643bd..a57c25ad0 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,