From fb32eee5caf331097e69d89af94767bbdca6abba Mon Sep 17 00:00:00 2001
From: Joffrey BION <joffrey.bion@gmail.com>
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<ApiPlayer>,
-  owner: string,
-  currentPlayer: ApiPlayer,
-};
-
-const PlayerListItem = ({player, isOwner, isUser}) => (
-  <tr>
-    <td>
-      <Flex align='center'>
-        {isOwner && <Icon icon='badge' title='Game owner'/>}
-        {isUser && <Icon icon='user' title='This is you'/>}
-      </Flex>
-    </td>
-    <td>{player.displayName}</td>
-    <td>{player.username}</td>
-  </tr>
-);
-
-export const PlayerList = ({players, owner, currentPlayer}: PlayerListProps) => (
-  <table className={Classes.HTML_TABLE}>
-    <tbody>
-      {players.map(player => <PlayerListItem key={player.username}
-                                             player={player}
-                                             isOwner={player.username === owner}
-                                             isUser={player.username === currentPlayer.username}/>)}
-    </tbody>
-  </table>
-);
-- 
cgit 

