This commit is contained in:
He4eT 2021-02-26 21:09:00 +05:00
commit 3cc2818f40
3 changed files with 21 additions and 13 deletions

View file

@ -5,7 +5,7 @@ import UrlPlayer from '~/src/components/player/UrlPlayer'
const decode = encodedUrl => decodeURIComponent(encodedUrl)
export default function ({setTheme, theme, encodedUrl}) {
export default function ({ setTheme, theme, encodedUrl }) {
useEffect(() => setTheme(theme), [theme])
const [targetUrl, setTargetUrl] = useState(decode(encodedUrl))