summaryrefslogtreecommitdiff
path: root/frontend/src/components/Application.tsx
blob: e0ec604dbd893c12a962ff149302ba54157166c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import { GameBrowser } from './game-browser/GameBrowser';
import { GameScene } from './game/GameScene';
import { Lobby } from './lobby/Lobby';
import { Home } from './home/Home';

export const Application = () => (
  <Switch>
    <Route path="/game" component={GameScene} />
    <Route path="/games" component={GameBrowser} />
    <Route path="/lobby" component={Lobby} />
    <Route path="/" component={Home} />
    <Redirect to="/" />
  </Switch>
);
bgstack15