Change PureComponent to ImmutablePureComponent (#3460)

* Change PureComponent to ImmutablePureComponent

Change PureComponent to ImmutablePureComponent in AttachmentList.

* rm React.
lolsob-rspec
Yamagishi Kazutoshi 2017-05-31 09:14:26 +09:00 committed by Eugen Rochko
parent f99cd7d9f4
commit 52ef65bdc6
1 changed files with 2 additions and 1 deletions

View File

@ -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,