summaryrefslogtreecommitdiff
path: root/frontend/src/containers/home.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-07-31 18:48:19 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-08-07 22:41:20 +0200
commitd605156a5f61a1fe9d18bac8407cdec4ec0aa9a3 (patch)
tree35f7f80c75a91d30e1ba5c72e8bb487a1ccdbb52 /frontend/src/containers/home.js
parentRefactor routes to new structure (diff)
downloadseven-wonders-d605156a5f61a1fe9d18bac8407cdec4ec0aa9a3.tar.gz
seven-wonders-d605156a5f61a1fe9d18bac8407cdec4ec0aa9a3.tar.bz2
seven-wonders-d605156a5f61a1fe9d18bac8407cdec4ec0aa9a3.zip
Remove containers folder
Diffstat (limited to 'frontend/src/containers/home.js')
-rw-r--r--frontend/src/containers/home.js38
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);
bgstack15