diff options
Diffstat (limited to 'frontend/src/containers/home.js')
-rw-r--r-- | frontend/src/containers/home.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/frontend/src/containers/home.js b/frontend/src/containers/home.js deleted file mode 100644 index f60c1c52..00000000 --- a/frontend/src/containers/home.js +++ /dev/null @@ -1,38 +0,0 @@ -import React, { Component } from 'react'; -import { connect } from 'react-redux'; -import { Button, Container, Input } from 'rebass'; -import { actions } from '../redux/players'; - -class HomePage extends Component { - play = e => { - e.preventDefault(); - if (this._username !== undefined) { - this.props.chooseUsername(this._username); - } - }; - - render() { - return ( - <Container> - <Input - name="username" - label="Username" - placeholder="Username" - hideLabel - onChange={e => (this._username = e.target.value)} - /> - <Button backgroundColor="primary" color="white" big onClick={this.play}> - PLAY NOW! - </Button> - </Container> - ); - } -} - -const mapStateToProps = state => ({}); - -const mapDispatchToProps = { - chooseUsername: actions.chooseUsername, -}; - -export default connect(mapStateToProps, mapDispatchToProps)(HomePage); |