summaryrefslogtreecommitdiff
path: root/frontend/src/routes.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-05-20 15:00:13 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-05-20 15:00:13 +0200
commit33e3b361d4e9758bbbab1d23ac6b51a2af21e781 (patch)
tree8670e3b4f4e76dc52a852a46d6c8170c982ec9f0 /frontend/src/routes.js
parentFixed 'unused React' warning (diff)
downloadseven-wonders-33e3b361d4e9758bbbab1d23ac6b51a2af21e781.tar.gz
seven-wonders-33e3b361d4e9758bbbab1d23ac6b51a2af21e781.tar.bz2
seven-wonders-33e3b361d4e9758bbbab1d23ac6b51a2af21e781.zip
Upgrade react-scripts to 1.0.1
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r--frontend/src/routes.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index 6fd60c04..e49a7e2c 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -1,42 +1,42 @@
-import { fork } from 'redux-saga/effects'
-import homeSaga from './sagas/home'
-import gameBrowserSaga from './sagas/gameBrowser'
-import lobbySaga from './sagas/lobby'
+import { fork } from "redux-saga/effects";
+import homeSaga from "./sagas/home";
+import gameBrowserSaga from "./sagas/gameBrowser";
+import lobbySaga from "./sagas/lobby";
+
+import { HomeLayout, LobbyLayout } from "./layouts";
+import HomePage from "./containers/home";
+import GameBrowser from "./containers/gameBrowser";
+import Lobby from "./containers/lobby";
+import Error404 from "./components/errors/Error404";
export const makeSagaRoutes = wsConnection => ({
- *'/'() {
- yield fork(homeSaga, wsConnection)
+ *"/"() {
+ yield fork(homeSaga, wsConnection);
},
- *'/games'() {
- yield fork(gameBrowserSaga, wsConnection)
+ *"/games"() {
+ yield fork(gameBrowserSaga, wsConnection);
},
- *'/lobby/*'() {
- yield fork(lobbySaga, wsConnection)
+ *"/lobby/*"() {
+ yield fork(lobbySaga, wsConnection);
}
-})
-
-import { HomeLayout, LobbyLayout } from './layouts'
-import HomePage from './containers/home'
-import GameBrowser from './containers/gameBrowser'
-import Lobby from './containers/lobby'
-import Error404 from './components/errors/Error404'
+});
export const routes = [
{
- path: '/',
+ path: "/",
component: HomeLayout,
indexRoute: { component: HomePage }
},
{
- path: '/',
+ path: "/",
component: LobbyLayout,
childRoutes: [
- { path: '/games', component: GameBrowser },
- { path: '/lobby/*', component: Lobby }
+ { path: "/games", component: GameBrowser },
+ { path: "/lobby/*", component: Lobby }
]
},
{
- path: '*',
- component: Error404,
+ path: "*",
+ component: Error404
}
-]
+];
bgstack15