fix(ui) - modal scroll issue

This commit is contained in:
Shekar Siri 2023-02-20 18:27:45 +01:00 committed by Taha Yassine Kraiem
parent 12c81188ed
commit 47f371bda8

View file

@ -13,7 +13,8 @@ function Modal(props: Props) {
useEffect(() => {
if (open) {
document.body.style.overflow = 'hidden';
} else {
}
return () => {
document.body.style.overflow = 'auto';
}
}, [open]);