|
@ -4,7 +4,6 @@ import {modifyStateToCreateRoom} from '../App' |
|
|
|
|
|
|
|
|
export default (props) => { |
|
|
export default (props) => { |
|
|
let rooms = props.roomArray; |
|
|
let rooms = props.roomArray; |
|
|
console.log(rooms); |
|
|
|
|
|
if (rooms.length != 0) { |
|
|
if (rooms.length != 0) { |
|
|
let roomsList = rooms.map((room) => |
|
|
let roomsList = rooms.map((room) => |
|
|
<RoomListItem roomName={room.name} private={room.passwordBool} capacity={room.capacity} occupancy={room.occupants} /> |
|
|
<RoomListItem roomName={room.name} private={room.passwordBool} capacity={room.capacity} occupancy={room.occupants} /> |
|
|