summaryrefslogtreecommitdiff
path: root/frontend/src/components/playerList.js
blob: 45aa01a206dca356b4c29093a6bdc66f56b6fe5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react'
import { Flex } from 'reflexbox'
import { Text } from 'rebass'
import Immutable from 'seamless-immutable'

const PlayerList = (props) => (
  <div>
    {Immutable.asMutable(props.players).map((player, index) => {
      return (<Flex key={index}>
        <Text>{player.displayName}</Text>
        <Text>({player.username})</Text>
      </Flex>)
    })}
  </div>
)

export default PlayerList
bgstack15