Fixed page style when auth modal opened
This commit is contained in:
parent
7ae55bf529
commit
121ab1aedf
|
@ -54,7 +54,7 @@ export const Header = (props: Props) => {
|
|||
const isFixed = fixed() || (getModal() && getModal() !== 'share');
|
||||
|
||||
document.body.classList.toggle('fixed', isFixed);
|
||||
document.body.classList.toggle(styles.fixed, isFixed);
|
||||
document.body.classList.toggle(styles.fixed, isFixed && !getModal());
|
||||
}, [fixed(), getModal()])
|
||||
|
||||
// derived
|
||||
|
|
Loading…
Reference in New Issue
Block a user