summaryrefslogtreecommitdiff
path: root/frontend/src/containers/home.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-22 11:42:46 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-22 11:42:46 +0100
commit87d82a83915044f6e988455d80b46f9f9f19a797 (patch)
treec584f21bdf771a86e3cc49bda78c240297864d71 /frontend/src/containers/home.js
parentAdd validation constraints on PlayerMove (diff)
parentBetter implementation of username choice (diff)
downloadseven-wonders-87d82a83915044f6e988455d80b46f9f9f19a797.tar.gz
seven-wonders-87d82a83915044f6e988455d80b46f9f9f19a797.tar.bz2
seven-wonders-87d82a83915044f6e988455d80b46f9f9f19a797.zip
Merge remote-tracking branch 'remotes/origin/feature/front'
Diffstat (limited to 'frontend/src/containers/home.js')
-rw-r--r--frontend/src/containers/home.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/containers/home.js b/frontend/src/containers/home.js
index ce1b69fd..cc35f2bc 100644
--- a/frontend/src/containers/home.js
+++ b/frontend/src/containers/home.js
@@ -7,7 +7,7 @@ class HomePage extends Component {
play = (e) => {
e.preventDefault()
if (this._username !== undefined) {
- this.props.enterGame(this._username)
+ this.props.chooseUsername(this._username)
}
}
@@ -32,9 +32,9 @@ const mapStateToProps = (state) => ({
})
-import { actions } from '../redux/game'
+import { actions } from '../redux/user'
const mapDispatchToProps = {
- enterGame: actions.enterGame
+ chooseUsername: actions.chooseUsername
}
export default connect(mapStateToProps, mapDispatchToProps)(HomePage)
bgstack15