From 2382a452456e4bdef4584e1046925e372624cb79 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Thu, 16 May 2019 23:48:38 +0200 Subject: Rationalize module names --- .../src/components/game-browser/GameBrowser.tsx | 56 -------------- frontend/src/components/game-browser/GameList.css | 3 - frontend/src/components/game-browser/GameList.tsx | 85 ---------------------- .../src/components/game-browser/GameStatus.tsx | 17 ----- .../src/components/game-browser/PlayerCount.css | 3 - .../src/components/game-browser/PlayerCount.tsx | 12 --- .../src/components/game-browser/PlayerInfo.tsx | 27 ------- 7 files changed, 203 deletions(-) delete mode 100644 frontend/src/components/game-browser/GameBrowser.tsx delete mode 100644 frontend/src/components/game-browser/GameList.css delete mode 100644 frontend/src/components/game-browser/GameList.tsx delete mode 100644 frontend/src/components/game-browser/GameStatus.tsx delete mode 100644 frontend/src/components/game-browser/PlayerCount.css delete mode 100644 frontend/src/components/game-browser/PlayerCount.tsx delete mode 100644 frontend/src/components/game-browser/PlayerInfo.tsx (limited to 'frontend/src/components/game-browser') diff --git a/frontend/src/components/game-browser/GameBrowser.tsx b/frontend/src/components/game-browser/GameBrowser.tsx deleted file mode 100644 index a6367d5e..00000000 --- a/frontend/src/components/game-browser/GameBrowser.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core'; -import React, { ChangeEvent, Component, SyntheticEvent } 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={} - /> - - -
- -
- ); - } -} - -type CreateGameButtonProps = { - createGame: (e: SyntheticEvent) => void -} - -const CreateGameButton = ({createGame}: CreateGameButtonProps) => ( -