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 --- frontend/src/components/home/ChooseNameForm.tsx | 42 --------------------- frontend/src/components/home/Home.css | 13 ------- frontend/src/components/home/Home.tsx | 12 ------ .../src/components/home/background-zeus-temple.jpg | Bin 571089 -> 0 bytes frontend/src/components/home/logo-7-wonders.png | Bin 301442 -> 0 bytes 5 files changed, 67 deletions(-) delete mode 100644 frontend/src/components/home/ChooseNameForm.tsx delete mode 100644 frontend/src/components/home/Home.css delete mode 100644 frontend/src/components/home/Home.tsx delete mode 100644 frontend/src/components/home/background-zeus-temple.jpg delete mode 100644 frontend/src/components/home/logo-7-wonders.png (limited to 'frontend/src/components/home') diff --git a/frontend/src/components/home/ChooseNameForm.tsx b/frontend/src/components/home/ChooseNameForm.tsx deleted file mode 100644 index 8292150b..00000000 --- a/frontend/src/components/home/ChooseNameForm.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core'; -import React, { ChangeEvent, Component, SyntheticEvent } from 'react'; -import { connect } from 'react-redux'; -import { actions } from '../../redux/actions/user'; - -type ChooseNameFormPresenterProps = { - chooseUsername: (username: string) => void, -} - -class ChooseNameFormPresenter extends Component { - _username = ''; - - play = (e: SyntheticEvent) => { - e.preventDefault(); - if (this._username !== undefined) { - this.props.chooseUsername(this._username); - } - }; - - render() { - return ( -
- ) => (this._username = e.target.value)} - rightElement={this.renderSubmit()} - /> - - ); - } - - renderSubmit = () => ( -