Add GameEntry component

This commit is contained in:
He4eT 2021-03-04 03:16:20 +05:00
commit 9e4e101495
5 changed files with 96 additions and 5 deletions

View file

@ -10,6 +10,7 @@ import {
} from '~/src/themes/themes'
import HomeView from '~/src/views/HomeView'
import GamesView from '~/src/views/GamesView'
import PlayerView from '~/src/views/PlayerView'
import NotFoundView from '~/src/views/NotFoundView'
@ -33,15 +34,18 @@ function App () {
themeEngine
}} />
</Route>
<Route path='/games/:theme'>
{params => <GamesView {...{
...themeEngine,
...params
}} />}
</Route>
<Route path='/play/:theme/:encodedUrl'>
{params => <PlayerView {...{
...themeEngine,
...params
}} />}
</Route>
<Route path='/top100'>
top100
</Route>
<Route>
<NotFoundView />
</Route>