mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07: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
|
||||
} from '~/src/themes/themes'
|
||||
|
||||
import Home from '~/src/views/Home'
|
||||
import Player from '~/src/views/Player'
|
||||
import HomeView from '~/src/views/HomeView'
|
||||
import PlayerView from '~/src/views/PlayerView'
|
||||
|
||||
import '~/src/style/base.css'
|
||||
|
||||
|
|
@ -26,14 +26,14 @@ function App () {
|
|||
<div className={['app', currentTheme].join(' ')}>
|
||||
<Switch>
|
||||
<Route path='/'>
|
||||
<Home {...{
|
||||
<HomeView {...{
|
||||
setTheme,
|
||||
themeList,
|
||||
currentTheme
|
||||
}} />
|
||||
</Route>
|
||||
<Route path='/play/:theme/:encodedUrl'>
|
||||
{params => <Player {...{
|
||||
{params => <PlayerView {...{
|
||||
setTheme,
|
||||
...params
|
||||
}} />}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue