From b494d2d141a942b0905ac46a551ff42878f0f081 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Thu, 11 May 2017 19:47:49 +0200 Subject: First attempt at lobby joining --- frontend/src/components/playerList.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frontend/src/components/playerList.js (limited to 'frontend/src/components/playerList.js') diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js new file mode 100644 index 00000000..30384d53 --- /dev/null +++ b/frontend/src/components/playerList.js @@ -0,0 +1,16 @@ +import React from 'react' +import { Flex } from 'reflexbox' +import { Text } from 'rebass' + +const PlayerList = (props) => ( +
+ {props.players.map((player, index) => { + return ( + {player.get('displayName')} + ({player.get('username')}) + ) + })} +
+) + +export default PlayerList -- cgit