summaryrefslogtreecommitdiff
path: root/frontend/src/components/Application.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Application.tsx')
-rw-r--r--frontend/src/components/Application.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/components/Application.tsx b/frontend/src/components/Application.tsx
new file mode 100644
index 00000000..e0ec604d
--- /dev/null
+++ b/frontend/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