diff options
Diffstat (limited to 'frontend/src/containers')
-rw-r--r-- | frontend/src/containers/app.js | 2 | ||||
-rw-r--r-- | frontend/src/containers/home.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/containers/app.js b/frontend/src/containers/app.js index adfc557f..40602efc 100644 --- a/frontend/src/containers/app.js +++ b/frontend/src/containers/app.js @@ -49,7 +49,7 @@ class App extends Component { } const mapStateToProps = (state) => ({ - username: state.user.get('displayName') + username: state.players.get('all').get(state.players.get('current')).get('username') }) diff --git a/frontend/src/containers/home.js b/frontend/src/containers/home.js index cc35f2bc..fe9bd373 100644 --- a/frontend/src/containers/home.js +++ b/frontend/src/containers/home.js @@ -22,6 +22,8 @@ class HomePage extends Component { onChange={(e) => this._username = e.target.value} onClick={this.play} /> + <Link to="/games">/games</Link> + <br /> <Link to="/somewhere">Take me somewhere</Link> </div> ) @@ -32,7 +34,7 @@ const mapStateToProps = (state) => ({ }) -import { actions } from '../redux/user' +import { actions } from '../redux/players' const mapDispatchToProps = { chooseUsername: actions.chooseUsername } |