🐛 bug: hide modal authen in initial

:%s
This commit is contained in:
lytrankieio123 2021-08-27 18:33:50 +07:00
parent ff30cb65f1
commit 6db0d9d67a

View File

@ -12,7 +12,7 @@ import s from './Header.module.scss'
const Header = memo(() => {
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(() => {
window.addEventListener('scroll', handleScroll)