This commit is contained in:
He4eT 2023-05-21 16:46:30 +03:00 committed by Alexey
commit 7a96d99055
21 changed files with 174 additions and 170 deletions

View file

@ -5,10 +5,10 @@ import UrlPlayer from '~/src/components/Player/UrlPlayer'
import './PlayerView.css'
const decode = encodedUrl => decodeURIComponent(encodedUrl)
const decode = (encodedUrl) => decodeURIComponent(encodedUrl)
export default function ({
setTheme, theme, encodedUrl, singleWindow
export default function PlayerView ({
setTheme, theme, encodedUrl, singleWindow,
}) {
useEffect(() => setTheme(theme), [setTheme, theme])
@ -22,7 +22,7 @@ export default function ({
<main>
<UrlPlayer {...{
url: targetUrl,
singleWindow
singleWindow,
}} />
</main>
)