diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2017-05-28 21:32:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-28 21:32:36 +0200 |
commit | ba9cd259ed1ca2370565265eab9fe2628ad6502c (patch) | |
tree | 0c24821770274a414f80b3092d5be54902c042d9 /frontend/src/components/playerList.js | |
parent | Fix proxy not working since CRA upgrade (diff) | |
parent | Move to immutable with Records (diff) | |
download | seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.tar.gz seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.tar.bz2 seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.zip |
Merge pull request #14 from luxons/immutable
Move to immutable with Records
Diffstat (limited to 'frontend/src/components/playerList.js')
-rw-r--r-- | frontend/src/components/playerList.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js index 1a68b067..bc2c768e 100644 --- a/frontend/src/components/playerList.js +++ b/frontend/src/components/playerList.js @@ -1,11 +1,10 @@ import React from 'react'; import { Flex } from 'reflexbox'; import { Text } from 'rebass'; -import Immutable from 'seamless-immutable'; -const PlayerList = props => ( +const PlayerList = ({ players }) => ( <div> - {Immutable.asMutable(props.players).map(player => { + {players.map(player => { return ( <Flex key={player.index}> <Text>{player.displayName}</Text> |