eslint fix

This commit is contained in:
He4eT 2021-07-22 14:49:31 +05:00
commit 1e0b16361f
10 changed files with 25 additions and 23 deletions

View file

@ -10,7 +10,7 @@ const decode = encodedUrl => decodeURIComponent(encodedUrl)
export default function ({
setTheme, theme, encodedUrl, singleWindow
}) {
useEffect(() => setTheme(theme), [theme])
useEffect(() => setTheme(theme), [setTheme, theme])
const [targetUrl, setTargetUrl] = useState(decode(encodedUrl))