Overlay refactoring

This commit is contained in:
tmshv committed 2020-02-13 22:42:05 +03:00
1 parent e45c69dee0
commit a5a1493b3b
2 files changed
-8

No files matched your search

-4
View File
@@ -17,10 +17,6 @@ export const Overlay: React.FC<IOverlayProps> = props => {
} }
}, [props.onClickOverlay]) }, [props.onClickOverlay])
React.useEffect(() => {
document.body.classList.toggle('noscroll', props.show)
}, [props.show])
return ( return (
<Transition <Transition
duration={duration} duration={duration}
-4
View File
@@ -89,7 +89,3 @@
--content-wide: 90%; --content-wide: 90%;
} }
} }
.noscroll {
overflow: hidden;
}