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

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