Fixed page style when auth modal opened

This commit is contained in:
kvakazyambra 2022-10-20 19:38:25 +03:00
parent 7ae55bf529
commit 121ab1aedf

View File

@ -54,7 +54,7 @@ export const Header = (props: Props) => {
const isFixed = fixed() || (getModal() && getModal() !== 'share'); const isFixed = fixed() || (getModal() && getModal() !== 'share');
document.body.classList.toggle('fixed', isFixed); document.body.classList.toggle('fixed', isFixed);
document.body.classList.toggle(styles.fixed, isFixed); document.body.classList.toggle(styles.fixed, isFixed && !getModal());
}, [fixed(), getModal()]) }, [fixed(), getModal()])
// derived // derived