aboutsummaryrefslogtreecommitdiff
path: root/src/routes.tsx
blob: 5310baf8183ead42bc223e1812af00558f41d47e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Switch, Route } from 'react-router-dom';

import './global.css';

import HomePage from './pages/home';
import SettingsPage from './pages/settings';
import GamePage from './pages/game';

export default function Router() {
	return <Switch>
		<Route exact path='/' component={HomePage}/>
		<Route exact path='/settings' component={SettingsPage}/>
		<Route exact path='/game' component={GamePage}/>
	</Switch>;
}