Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /** * @module Client.Router * Application Router */ import React from 'react'; import { Route, Switch } from 'react-router'; import { BrowserRouter } from 'react-router-dom'; import { CharacterPage } from './Game/CharacterPage'; import { CharactersList } from './Game/CharactersList'; const empty = () => null; export const Router = () => ( <BrowserRouter> <Switch> <Route exact={true} path="/" component={empty} /> <Route exact={true} path="/game" component={CharactersList} /> <Route path="/game/:selectedCharacter" render={(props) => <CharacterPage {...props.match.params} />} /> </Switch> </BrowserRouter> ); |