summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/index.js
blob: 0229e8500a978ace27a1e2bd5b6d457f95fe0db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react';
import { Route, Redirect, Switch } from 'react-router-dom';

import { SplashScreen } from './SplashScreen';
import { GameBrowser } from './GameBrowser';
import { Lobby } from './Lobby';

export const Application = () => (
  <Switch>
    <Route path="/splash-screen" component={SplashScreen} />
    <Route path="/games" component={GameBrowser} />
    <Route path="/lobby" component={Lobby} />
    <Redirect from="*" to="/splash-screen" />
  </Switch>
);
bgstack15