diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-06-10 15:41:42 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-06-10 15:46:50 +0200 |
commit | bd212b997b2c7293f98db6a6be2b2900da87af6f (patch) | |
tree | cd97259ebef04d63eb1c6bdf7b93e3bcfb75234d /frontend/src/components/Application.jsx | |
parent | Remove unnecessary prop types exports (diff) | |
download | seven-wonders-bd212b997b2c7293f98db6a6be2b2900da87af6f.tar.gz seven-wonders-bd212b997b2c7293f98db6a6be2b2900da87af6f.tar.bz2 seven-wonders-bd212b997b2c7293f98db6a6be2b2900da87af6f.zip |
Finish moving components out of /scenes package
Diffstat (limited to 'frontend/src/components/Application.jsx')
-rw-r--r-- | frontend/src/components/Application.jsx | 14 |
1 files changed, 14 insertions, 0 deletions
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> +); |