diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-22 15:33:50 +0100 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-22 15:33:50 +0100 |
commit | eeb83fbf0b2729923923144fc5c6299dda9c51c1 (patch) | |
tree | 2d31031012848fdd99eba0272ac9465dc2d00ba2 /frontend/src/index.js | |
parent | Add forgotten immutable data and remove unhandled action case (diff) | |
download | seven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.tar.gz seven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.tar.bz2 seven-wonders-eeb83fbf0b2729923923144fc5c6299dda9c51c1.zip |
Cleaned containers
Diffstat (limited to 'frontend/src/index.js')
-rw-r--r-- | frontend/src/index.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/frontend/src/index.js b/frontend/src/index.js index f06bb7b4..d5190d53 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -2,7 +2,7 @@ import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' -import { Router, Route } from 'react-router' +import { Router, Route, IndexRoute } from 'react-router' import { Provider } from 'react-redux' import configureStore from './store' @@ -11,15 +11,18 @@ const { store, history } = configureStore(initialState) import './global-styles.css' import HomePage from './containers/home' -import GameBrowser from './containers/app' +import { LobbyLayout } from './layouts' +import GameBrowser from './containers/gameBrowser' import Error404 from './components/errors/Error404' ReactDOM.render( <Provider store={store}> <Router history={history}> <div className="app"> - <Route path="/" component={HomePage} /> - <Route path="/games" component={GameBrowser} /> + <Route path="/" component={LobbyLayout}> + <IndexRoute component={HomePage} /> + <Route path="/games" component={GameBrowser} /> + </Route> <Route path="*" component={Error404} /> </div> </Router> |