From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 14 Mar 2016 08:50:46 -0400
Subject: Converting to Webpack. Stage 1.

---
 webapp/components/post_attachment_list.jsx | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 webapp/components/post_attachment_list.jsx

(limited to 'webapp/components/post_attachment_list.jsx')

diff --git a/webapp/components/post_attachment_list.jsx b/webapp/components/post_attachment_list.jsx
new file mode 100644
index 000000000..7da9efbee
--- /dev/null
+++ b/webapp/components/post_attachment_list.jsx
@@ -0,0 +1,30 @@
+// 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
+};
-- 
cgit v1.2.3-1-g7c22

