From cf7a05f80f68b5b1c8bcc0089679dd497cec2506 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Sun, 14 Jun 2015 23:53:32 -0800
Subject: first commit

---
 web/react/components/member_list.jsx | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 web/react/components/member_list.jsx

(limited to 'web/react/components/member_list.jsx')

diff --git a/web/react/components/member_list.jsx b/web/react/components/member_list.jsx
new file mode 100644
index 000000000..a37392f96
--- /dev/null
+++ b/web/react/components/member_list.jsx
@@ -0,0 +1,34 @@
+// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+var MemberListItem = require('./member_list_item.jsx');
+
+module.exports = React.createClass({
+    render: function() {
+        var members = [];
+
+        if (this.props.memberList != null) {
+            members = this.props.memberList;
+        }
+
+        var message = "";
+        if (members.length === 0)
+            message = <span>No users to add or manage.</span>;
+
+        return (
+            <div className="member-list-holder">
+                {members.map(function(member) {
+                    return <MemberListItem 
+                                key={member.id}
+                                member={member}
+                                isAdmin={this.props.isAdmin}
+                                handleInvite={this.props.handleInvite}
+                                handleRemove={this.props.handleRemove}
+                                handleMakeAdmin={this.props.handleMakeAdmin}
+                            />;
+                }, this)}
+                {message}
+            </div>
+        );
+    }
+});
-- 
cgit v1.2.3-1-g7c22

