mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Linting
This commit is contained in:
parent
3288234f36
commit
7a96d99055
21 changed files with 174 additions and 170 deletions
20
src/index.js
20
src/index.js
|
|
@ -3,10 +3,10 @@ import { Route, Router, Switch } from 'wouter-preact'
|
|||
|
||||
import {
|
||||
useHashLocation,
|
||||
extractView
|
||||
extractView,
|
||||
} from '~/src/utils/utils.routing'
|
||||
import {
|
||||
useThemeEngine
|
||||
useThemeEngine,
|
||||
} from '~/src/themes/themes'
|
||||
|
||||
import HomeView from '~/src/views/HomeView/HomeView'
|
||||
|
|
@ -21,12 +21,14 @@ function App () {
|
|||
const themeEngine = useThemeEngine()
|
||||
const [location] = useHashLocation()
|
||||
|
||||
const playerView = (themeEngine, singleWindow) => params =>
|
||||
(<PlayerView {...{
|
||||
...themeEngine,
|
||||
...params,
|
||||
singleWindow
|
||||
}} />)
|
||||
const playerView = (themeEngine, singleWindow) =>
|
||||
function view (params) {
|
||||
return (<PlayerView {...{
|
||||
...themeEngine,
|
||||
...params,
|
||||
singleWindow,
|
||||
}} />)
|
||||
}
|
||||
|
||||
return (
|
||||
<Router hook={useHashLocation}>
|
||||
|
|
@ -38,7 +40,7 @@ function App () {
|
|||
<Switch>
|
||||
<Route path='/'>
|
||||
<HomeView {...{
|
||||
themeEngine
|
||||
themeEngine,
|
||||
}} />
|
||||
</Route>
|
||||
<Route path='/games/'>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue