summaryrefslogtreecommitdiff
path: root/frontend/src/components/playerList.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-11 19:47:49 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-12 00:13:57 +0200
commitb494d2d141a942b0905ac46a551ff42878f0f081 (patch)
tree18d94a3e86d0749f013075a110d6c43efaa782de /frontend/src/components/playerList.js
parentAdd time limit setting (diff)
downloadseven-wonders-b494d2d141a942b0905ac46a551ff42878f0f081.tar.gz
seven-wonders-b494d2d141a942b0905ac46a551ff42878f0f081.tar.bz2
seven-wonders-b494d2d141a942b0905ac46a551ff42878f0f081.zip
First attempt at lobby joining
Diffstat (limited to 'frontend/src/components/playerList.js')
-rw-r--r--frontend/src/components/playerList.js16
1 files changed, 16 insertions, 0 deletions
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) => (
+ <div>
+ {props.players.map((player, index) => {
+ return (<Flex key={index}>
+ <Text>{player.get('displayName')}</Text>
+ <Text>({player.get('username')})</Text>
+ </Flex>)
+ })}
+ </div>
+)
+
+export default PlayerList
bgstack15