From bd212b997b2c7293f98db6a6be2b2900da87af6f Mon Sep 17 00:00:00 2001
From: Joffrey BION <joffrey.bion@gmail.com>
Date: Sun, 10 Jun 2018 15:41:42 +0200
Subject: Finish moving components out of /scenes package

---
 frontend/src/components/Application.jsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 frontend/src/components/Application.jsx

(limited to 'frontend/src/components/Application.jsx')

diff --git a/frontend/src/components/Application.jsx b/frontend/src/components/Application.jsx
new file mode 100644
index 00000000..d7e1738c
--- /dev/null
+++ b/frontend/src/components/Application.jsx
@@ -0,0 +1,14 @@
+import React from 'react';
+import { Redirect, Route, Switch } from 'react-router-dom';
+import { GameBrowser } from './game-browser/GameBrowser';
+import { Lobby } from './lobby/Lobby';
+import { Home } from './home/Home';
+
+export const Application = () => (
+  <Switch>
+    <Route path="/games" component={GameBrowser} />
+    <Route path="/lobby" component={Lobby} />
+    <Route path="/" component={Home} />
+    <Redirect to="/" />
+  </Switch>
+);
-- 
cgit 

