diff options
Diffstat (limited to 'frontend/src/scenes/index.js')
-rw-r--r-- | frontend/src/scenes/index.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/src/scenes/index.js b/frontend/src/scenes/index.js new file mode 100644 index 00000000..83554d48 --- /dev/null +++ b/frontend/src/scenes/index.js @@ -0,0 +1,17 @@ +import React from 'react'; +import { Route, Redirect, Switch } from 'react-router-dom'; + +import SplashScreen from './SplashScreen'; +import Games from './Games'; +import Lobby from './Lobby'; + +const Application = () => ( + <Switch> + <Route path="/splash-screen" component={SplashScreen} /> + <Route path="/games" component={Games} /> + <Route path="/lobby" component={Lobby} /> + <Redirect from="*" to="/splash-screen" /> + </Switch> +); + +export default Application; |