From 8b2337cfee7a794f1cd924ca11fd4daa89a148fc Mon Sep 17 00:00:00 2001 From: ritfsaecdaq Date: Sun, 28 Jan 2018 00:50:12 -0500 Subject: [PATCH] implemented userlist, remove debug class from roomlist --- googletrendsgame/src/components/RoomList.js | 1 - googletrendsgame/src/components/UserList.js | 14 +++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/googletrendsgame/src/components/RoomList.js b/googletrendsgame/src/components/RoomList.js index ee965d6..aa95502 100644 --- a/googletrendsgame/src/components/RoomList.js +++ b/googletrendsgame/src/components/RoomList.js @@ -4,7 +4,6 @@ import {modifyStateToCreateRoom} from '../App' export default (props) => { let rooms = props.roomArray; - console.log(rooms); if (rooms.length != 0) { let roomsList = rooms.map((room) => diff --git a/googletrendsgame/src/components/UserList.js b/googletrendsgame/src/components/UserList.js index 769f761..f4f173d 100644 --- a/googletrendsgame/src/components/UserList.js +++ b/googletrendsgame/src/components/UserList.js @@ -1,3 +1,15 @@ import React from 'react'; +import User from './User' -function +export default (props) => { + var users = props.users; + + var userList = users.map((user) => + + ); + return( +
+
    {userList}
+
+ ); +}