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])
|
}, [props.onClickOverlay])
|
||||||
|
|
||||||
React.useEffect(() => {
|
|
||||||
document.body.classList.toggle('noscroll', props.show)
|
|
||||||
}, [props.show])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Transition
|
<Transition
|
||||||
duration={duration}
|
duration={duration}
|
||||||
|
|||||||
@@ -89,7 +89,3 @@
|
|||||||
--content-wide: 90%;
|
--content-wide: 90%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.noscroll {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user