summaryrefslogtreecommitdiff
path: root/frontend/src/routes.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-07-24 23:51:21 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-08-07 22:41:20 +0200
commit620f354facfc28de31b02d46ca478b9abbaeae2c (patch)
tree3fc485909c761688a13a0964a66ed04a5498a10e /frontend/src/routes.js
parentFix Map unexepected constructor argument by removing new keyword (diff)
downloadseven-wonders-620f354facfc28de31b02d46ca478b9abbaeae2c.tar.gz
seven-wonders-620f354facfc28de31b02d46ca478b9abbaeae2c.tar.bz2
seven-wonders-620f354facfc28de31b02d46ca478b9abbaeae2c.zip
Remove redux-saga-router
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r--frontend/src/routes.js21
1 files changed, 2 insertions, 19 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index 61c6aacd..b87977ef 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -1,26 +1,9 @@
// @flow
-import { fork } from 'redux-saga/effects';
-import { SevenWondersSession } from './api/sevenWondersApi';
-import Error404 from './components/errors/Error404';
+import { HomeLayout, LobbyLayout } from './layouts';
import GameBrowser from './containers/gameBrowser';
import HomePage from './containers/home';
import Lobby from './containers/lobby';
-import { HomeLayout, LobbyLayout } from './layouts';
-import gameBrowserSaga from './sagas/gameBrowser';
-import homeSaga from './sagas/home';
-import lobbySaga from './sagas/lobby';
-
-export const makeSagaRoutes = (sevenWondersSession: SevenWondersSession) => ({
- *'/'() {
- yield fork(homeSaga, sevenWondersSession);
- },
- *'/games'() {
- yield fork(gameBrowserSaga, sevenWondersSession);
- },
- *'/lobby/*'() {
- yield fork(lobbySaga, sevenWondersSession);
- },
-});
+import Error404 from './components/errors/Error404';
export const routes = [
{
bgstack15