mirror of
https://github.com/vercel/commerce.git
synced 2025-07-15 08:51:21 +00:00
🐛 bug: hide modal authen in initial
:%s
This commit is contained in:
parent
ff30cb65f1
commit
6db0d9d67a
@ -12,7 +12,7 @@ import s from './Header.module.scss'
|
|||||||
|
|
||||||
const Header = memo(() => {
|
const Header = memo(() => {
|
||||||
const [isFullHeader, setIsFullHeader] = useState<boolean>(true)
|
const [isFullHeader, setIsFullHeader] = useState<boolean>(true)
|
||||||
const { visible: visibleModalAuthen, closeModal: closeModalAuthen, openModal: openModalAuthen } = useModalCommon({ initialValue: true })
|
const { visible: visibleModalAuthen, closeModal: closeModalAuthen, openModal: openModalAuthen } = useModalCommon({ initialValue: false })
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.addEventListener('scroll', handleScroll)
|
window.addEventListener('scroll', handleScroll)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user