Этот коммит содержится в:
Florian Orben
2015-10-31 03:22:02 +01:00
родитель d96cb50b68
Коммит d3ed791ab5
7 изменённых файлов: 359 добавлений и 0 удалений

Просмотреть файл

@@ -0,0 +1,32 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
const PostAttachment = require('./post_attachment.jsx');
export default class PostAttachmentList extends React.Component {
constructor(props) {
super(props);
}
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
};