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/scenes/GameBrowser/index.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'frontend/src/scenes/GameBrowser/index.js') diff --git a/frontend/src/scenes/GameBrowser/index.js b/frontend/src/scenes/GameBrowser/index.js index 7bb8b59d..5a94e290 100644 --- a/frontend/src/scenes/GameBrowser/index.js +++ b/frontend/src/scenes/GameBrowser/index.js @@ -1,8 +1,8 @@ // @flow +import { Button, Classes, InputGroup, Intent, Text } from '@blueprintjs/core'; import type { List } from 'immutable'; import React, { Component } from 'react'; import { connect } from 'react-redux'; -import { InlineForm, Space, Text } from 'rebass'; import { Flex } from 'reflexbox'; import { GameList } from '../../components/gameList'; import type { Game } from '../../models/games'; @@ -38,20 +38,17 @@ class GameBrowserPresenter extends Component { return (
- ) => (this._gameName = e.target.value)} - onClick={this.createGame} + ) => (this._gameName = e.target.value)} + rightElement={} /> - Username: {' '} {this.props.currentPlayer && this.props.currentPlayer.displayName} -
@@ -59,6 +56,10 @@ class GameBrowserPresenter extends Component { } } +const CreateGameButton = ({onClick}) => ( + +); + const mapStateToProps = state => ({ currentPlayer: getCurrentPlayer(state.get('players')), games: getAllGames(state.get('games')), -- cgit