summaryrefslogtreecommitdiff
path: root/frontend/src/routes.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-21 20:20:45 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-22 00:23:02 +0200
commitc03e68041e0f444e18a895058afbdf0d68759517 (patch)
tree6e31f9726d36e746f43c7856cebff8c861577e31 /frontend/src/routes.js
parentClean name in websocket.js (diff)
downloadseven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.tar.gz
seven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.tar.bz2
seven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.zip
Update prettier config and reformat
Here's the discussion summary: - single quote, because that's what I'm used to in the JS world - trailing comma, to avoid unnecessary git changes - print-width 120, because 120 still doesn't require to scroll horizontally, and vertical space is precious
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r--frontend/src/routes.js43
1 files changed, 20 insertions, 23 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index e49a7e2c..29894c3a 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -1,42 +1,39 @@
-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";
+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);
},
- *"/games"() {
+ *'/games'() {
yield fork(gameBrowserSaga, wsConnection);
},
- *"/lobby/*"() {
+ *'/lobby/*'() {
yield fork(lobbySaga, wsConnection);
- }
+ },
});
export const routes = [
{
- path: "/",
+ path: '/',
component: HomeLayout,
- indexRoute: { component: HomePage }
+ indexRoute: { component: HomePage },
},
{
- path: "/",
+ path: '/',
component: LobbyLayout,
- childRoutes: [
- { path: "/games", component: GameBrowser },
- { path: "/lobby/*", component: Lobby }
- ]
+ childRoutes: [{ path: '/games', component: GameBrowser }, { path: '/lobby/*', component: Lobby }],
},
{
- path: "*",
- component: Error404
- }
+ path: '*',
+ component: Error404,
+ },
];
bgstack15