mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Rename Views
This commit is contained in:
parent
3d5029173f
commit
d7ba6d8c60
3 changed files with 4 additions and 4 deletions
|
|
@ -9,8 +9,8 @@ import {
|
||||||
assertTheme
|
assertTheme
|
||||||
} from '~/src/themes/themes'
|
} from '~/src/themes/themes'
|
||||||
|
|
||||||
import Home from '~/src/views/Home'
|
import HomeView from '~/src/views/HomeView'
|
||||||
import Player from '~/src/views/Player'
|
import PlayerView from '~/src/views/PlayerView'
|
||||||
|
|
||||||
import '~/src/style/base.css'
|
import '~/src/style/base.css'
|
||||||
|
|
||||||
|
|
@ -26,14 +26,14 @@ function App () {
|
||||||
<div className={['app', currentTheme].join(' ')}>
|
<div className={['app', currentTheme].join(' ')}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path='/'>
|
<Route path='/'>
|
||||||
<Home {...{
|
<HomeView {...{
|
||||||
setTheme,
|
setTheme,
|
||||||
themeList,
|
themeList,
|
||||||
currentTheme
|
currentTheme
|
||||||
}} />
|
}} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path='/play/:theme/:encodedUrl'>
|
<Route path='/play/:theme/:encodedUrl'>
|
||||||
{params => <Player {...{
|
{params => <PlayerView {...{
|
||||||
setTheme,
|
setTheme,
|
||||||
...params
|
...params
|
||||||
}} />}
|
}} />}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue