Overlay refactoring
This commit is contained in:
1 parent
e45c69dee0
commit
a5a1493b3b
2 files changed
-8
No files matched your search
@@ -17,10 +17,6 @@ export const Overlay: React.FC<IOverlayProps> = props => {
|
||||
}
|
||||
}, [props.onClickOverlay])
|
||||
|
||||
React.useEffect(() => {
|
||||
document.body.classList.toggle('noscroll', props.show)
|
||||
}, [props.show])
|
||||
|
||||
return (
|
||||
<Transition
|
||||
duration={duration}
|
||||
|
||||
@@ -89,7 +89,3 @@
|
||||
--content-wide: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
.noscroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
Reference in new issue
Block a user