diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-27 16:01:28 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-27 16:01:28 -0400 |
commit | 6399a94ce221be3d15e7132654c28cd953075ec6 (patch) | |
tree | 4b1927fdd8374e8bd3cb809ecb720f2689043358 /webapp/components/post_attachment_list.jsx | |
parent | ca9f348be6bf62fc888df9a710c9af155872528e (diff) | |
download | chat-6399a94ce221be3d15e7132654c28cd953075ec6.tar.gz chat-6399a94ce221be3d15e7132654c28cd953075ec6.tar.bz2 chat-6399a94ce221be3d15e7132654c28cd953075ec6.zip |
PLT-2672 Refactored posts view with caching (#3054)
* Refactored posts view to use view controller design
* Add post view caching
* Required updates after rebase
* Fixed bug where current channel not set yet was causing breakage
Diffstat (limited to 'webapp/components/post_attachment_list.jsx')
-rw-r--r-- | webapp/components/post_attachment_list.jsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/webapp/components/post_attachment_list.jsx b/webapp/components/post_attachment_list.jsx deleted file mode 100644 index 7da9efbee..000000000 --- a/webapp/components/post_attachment_list.jsx +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import PostAttachment from './post_attachment.jsx'; - -import React from 'react'; - -export default class PostAttachmentList extends React.Component { - render() { - let content = []; - this.props.attachments.forEach((attachment, i) => { - content.push( - <PostAttachment - attachment={attachment} - key={'att_' + i} - /> - ); - }); - - return ( - <div className='attachment_list'> - {content} - </div> - ); - } -} - -PostAttachmentList.propTypes = { - attachments: React.PropTypes.array.isRequired -}; |