From 0bf423172ffb2e4030b521b0985d133cb5c61dd9 Mon Sep 17 00:00:00 2001 From: Victor Chabbert Date: Sun, 28 May 2017 20:42:21 +0200 Subject: Move to immutable with Records --- frontend/src/components/gameList.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'frontend/src/components/gameList.js') diff --git a/frontend/src/components/gameList.js b/frontend/src/components/gameList.js index f3a0d381..17dad16f 100644 --- a/frontend/src/components/gameList.js +++ b/frontend/src/components/gameList.js @@ -1,18 +1,15 @@ import React from 'react'; import { Flex } from 'reflexbox'; import { Text, Space, Button } from 'rebass'; -import Immutable from 'seamless-immutable'; -const GameList = props => ( +const GameList = ({ games, joinGame }) => (
- {Immutable.asMutable(props.games).map((game, index) => { - const joinGame = () => props.joinGame(game.id); - + {games.map((game, index) => { return ( {game.name} - + ); })} -- cgit