mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
fix(3d): animation error while switch page
This commit is contained in:
@ -52,7 +52,11 @@ const parentIdChecker = (el: HTMLElement | null): boolean => {
|
||||
|
||||
const HeadBar = () => {
|
||||
const [showMenu, setShowMenu] = useState(false);
|
||||
const resetNavbarHoverItems = useStore(
|
||||
(state) => state.resetNavbarHoverItems,
|
||||
);
|
||||
const handleClick = () => {
|
||||
resetNavbarHoverItems();
|
||||
setShowMenu((showMenu) => !showMenu);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user