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:
@ -16,6 +16,7 @@ interface MainStore {
|
||||
about: boolean;
|
||||
};
|
||||
toggleNavbarHoverItems: (item: string) => void;
|
||||
resetNavbarHoverItems: () => void;
|
||||
}
|
||||
|
||||
const useStore = create<MainStore>()((set) => ({
|
||||
@ -41,6 +42,16 @@ const useStore = create<MainStore>()((set) => ({
|
||||
!state.navbarHoverItems[item],
|
||||
},
|
||||
})),
|
||||
resetNavbarHoverItems: () =>
|
||||
set(() => ({
|
||||
navbarHoverItems: {
|
||||
blog: false,
|
||||
projects: false,
|
||||
tags: false,
|
||||
friends: false,
|
||||
about: false,
|
||||
},
|
||||
})),
|
||||
}));
|
||||
|
||||
export default useStore;
|
||||
|
Reference in New Issue
Block a user