summaryrefslogtreecommitdiff
path: root/sw-ui/src/components/Application.tsx
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2019-05-16 23:48:38 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2019-05-16 23:48:38 +0200
commit2382a452456e4bdef4584e1046925e372624cb79 (patch)
tree0e49b2e5d81facb55fb8b08228abeb218a27d466 /sw-ui/src/components/Application.tsx
parentRemove GRADLE_METADATA feature to avoid breaking frontend build (diff)
downloadseven-wonders-2382a452456e4bdef4584e1046925e372624cb79.tar.gz
seven-wonders-2382a452456e4bdef4584e1046925e372624cb79.tar.bz2
seven-wonders-2382a452456e4bdef4584e1046925e372624cb79.zip
Rationalize module names
Diffstat (limited to 'sw-ui/src/components/Application.tsx')
-rw-r--r--sw-ui/src/components/Application.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sw-ui/src/components/Application.tsx b/sw-ui/src/components/Application.tsx
new file mode 100644
index 00000000..e0ec604d
--- /dev/null
+++ b/sw-ui/src/components/Application.tsx
@@ -0,0 +1,16 @@
+import React from 'react';
+import { Redirect, Route, Switch } from 'react-router-dom';
+import { GameBrowser } from './game-browser/GameBrowser';
+import { GameScene } from './game/GameScene';
+import { Lobby } from './lobby/Lobby';
+import { Home } from './home/Home';
+
+export const Application = () => (
+ <Switch>
+ <Route path="/game" component={GameScene} />
+ <Route path="/games" component={GameBrowser} />
+ <Route path="/lobby" component={Lobby} />
+ <Route path="/" component={Home} />
+ <Redirect to="/" />
+ </Switch>
+);
bgstack15