From 9298af15fdd228c51b1e5765c68c5062687ba96e Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Fri, 8 Jun 2018 23:34:06 +0200 Subject: Remove rebass dependency --- frontend/src/components/gameList.js | 3 +-- frontend/src/components/playerList.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/gameList.js b/frontend/src/components/gameList.js index 0b4091a7..b8567130 100644 --- a/frontend/src/components/gameList.js +++ b/frontend/src/components/gameList.js @@ -1,7 +1,7 @@ // @flow +import { Button, Text } from '@blueprintjs/core'; import type { List } from 'immutable'; import React from 'react'; -import { Button, Space, Text } from 'rebass'; import { Flex } from 'reflexbox'; import type { Game } from '../models/games'; @@ -11,7 +11,6 @@ export const GameList = ({ games, joinGame }: { games: List, joinGame: (ga return ( {game.name} - ); diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js index cc247668..bbdbc83b 100644 --- a/frontend/src/components/playerList.js +++ b/frontend/src/components/playerList.js @@ -1,8 +1,15 @@ +//@flow +import { Text } from '@blueprintjs/core'; +import { List } from 'immutable'; import React from 'react'; -import { Text } from 'rebass'; import { Flex } from 'reflexbox'; +import { Player } from '../models/players'; -export const PlayerList = ({ players }) => ( +export type PlayerListProps = { + players: List; +}; + +export const PlayerList = ({ players }: PlayerListProps) => (
{players.map(player => { return ( -- cgit