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}
+
+ ); +}