mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
Add GameEntry component
This commit is contained in:
parent
a7603a4cf8
commit
9e4e101495
5 changed files with 96 additions and 5 deletions
10
src/index.js
10
src/index.js
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue