summaryrefslogtreecommitdiff
path: root/frontend/src/components/gamesList.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-01-22 15:33:50 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2017-01-22 15:33:50 +0100
commiteeb83fbf0b2729923923144fc5c6299dda9c51c1 (patch)
tree2d31031012848fdd99eba0272ac9465dc2d00ba2 /frontend/src/components/gamesList.js
parentAdd forgotten immutable data and remove unhandled action case (diff)
downloadseven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.tar.gz
seven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.tar.bz2
seven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.zip
Cleaned containers
Diffstat (limited to 'frontend/src/components/gamesList.js')
-rw-r--r--frontend/src/components/gamesList.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/src/components/gamesList.js b/frontend/src/components/gamesList.js
new file mode 100644
index 00000000..0519e7d6
--- /dev/null
+++ b/frontend/src/components/gamesList.js
@@ -0,0 +1,17 @@
+import React from 'react'
+import { Flex } from 'reflexbox'
+import { Text, Space } from 'rebass'
+
+const GameBrowser = (props) => (
+ <div>
+ {props.games.valueSeq().map((game, index) => {
+ return (<Flex key={index}>
+ <Text>{game.get('name')}</Text>
+ <Space auto />
+ <a href="#">Join</a>
+ </Flex>)
+ })}
+ </div>
+)
+
+export default GameBrowser
bgstack15