diff options
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> +); |