From 664f7a98b44a561d619cc14235335e2a6f2bceb3 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 5 May 2019 20:31:41 +0200 Subject: Migrate game-browser components to TypeScript --- .../src/components/game-browser/GameBrowser.jsx | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 frontend/src/components/game-browser/GameBrowser.jsx (limited to 'frontend/src/components/game-browser/GameBrowser.jsx') diff --git a/frontend/src/components/game-browser/GameBrowser.jsx b/frontend/src/components/game-browser/GameBrowser.jsx deleted file mode 100644 index cfa0e45e..00000000 --- a/frontend/src/components/game-browser/GameBrowser.jsx +++ /dev/null @@ -1,53 +0,0 @@ -// @flow -import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core'; -import React, { Component } from 'react'; -import { connect } from 'react-redux'; -import { Flex } from 'reflexbox'; -import { actions } from '../../redux/actions/lobby'; -import { GameList } from './GameList'; -import { PlayerInfo } from './PlayerInfo'; - -type GameBrowserProps = { - createGame: (gameName: string) => void, -} - -class GameBrowserPresenter extends Component { - - _gameName: string | void = undefined; - - createGame = (e: SyntheticEvent<*>): void => { - e.preventDefault(); - if (this._gameName !== undefined) { - this.props.createGame(this._gameName); - } - }; - - render() { - return ( -
- -
- ) => (this._gameName = e.target.value)} - rightElement={} - /> - - -
- -
- ); - } -} - -const CreateGameButton = ({onClick}) => ( -