Scroll to top when changing source manga content type (#365)

This commit is contained in:
schroda
2023-06-16 00:15:13 +02:00
committed by GitHub
parent 5187d4c842
commit 97c77027f2

View File

@@ -286,6 +286,10 @@ export default function SourceMangas() {
); );
}, [t, source]); }, [t, source]);
useEffect(() => {
window.scrollTo(0, 0);
}, [contentType]);
return ( return (
<StyledGridWrapper hasContent={!!mangas.length}> <StyledGridWrapper hasContent={!!mangas.length}>
<ContentTypeMenu> <ContentTypeMenu>