diff options
Diffstat (limited to 'webapp/components/post_view/components/post_attachment_list.jsx')
-rw-r--r-- | webapp/components/post_view/components/post_attachment_list.jsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/webapp/components/post_view/components/post_attachment_list.jsx b/webapp/components/post_view/components/post_attachment_list.jsx deleted file mode 100644 index 3d7c0e4cd..000000000 --- a/webapp/components/post_view/components/post_attachment_list.jsx +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import PostAttachment from './post_attachment.jsx'; - -import PropTypes from 'prop-types'; - -import React from 'react'; - -export default function PostAttachmentList(props) { - const content = []; - props.attachments.forEach((attachment, i) => { - content.push( - <PostAttachment - attachment={attachment} - key={'att_' + i} - /> - ); - }); - - return ( - <div className='attachment_list'> - {content} - </div> - ); -} - -PostAttachmentList.propTypes = { - attachments: PropTypes.array.isRequired -}; |