From fb32eee5caf331097e69d89af94767bbdca6abba Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 5 May 2019 20:38:49 +0200 Subject: Migrate lobby components to TypeScript --- frontend/src/components/lobby/PlayerList.jsx | 36 ---------------------------- 1 file changed, 36 deletions(-) delete mode 100644 frontend/src/components/lobby/PlayerList.jsx (limited to 'frontend/src/components/lobby/PlayerList.jsx') diff --git a/frontend/src/components/lobby/PlayerList.jsx b/frontend/src/components/lobby/PlayerList.jsx deleted file mode 100644 index 80212a3e..00000000 --- a/frontend/src/components/lobby/PlayerList.jsx +++ /dev/null @@ -1,36 +0,0 @@ -//@flow -import { Classes, Icon } from '@blueprintjs/core' -import { List } from 'immutable'; -import * as React from 'react'; -import { Flex } from 'reflexbox'; -import { ApiPlayer } from '../../api/model'; - -type PlayerListProps = { - players: List, - owner: string, - currentPlayer: ApiPlayer, -}; - -const PlayerListItem = ({player, isOwner, isUser}) => ( - - - - {isOwner && } - {isUser && } - - - {player.displayName} - {player.username} - -); - -export const PlayerList = ({players, owner, currentPlayer}: PlayerListProps) => ( - - - {players.map(player => )} - -
-); -- cgit