change global store name

This commit is contained in:
DefectingCat
2023-06-25 14:35:37 +08:00
parent 56fed3cf38
commit 27a22bd779
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ interface MainStore {
toggleLoading: (loaded: boolean) => void;
}
const useMainStore = create<MainStore>()((set) => ({
const useStore = create<MainStore>()((set) => ({
modelLoading: true,
toggleLoading: (loaded) =>
set(() => ({
@ -13,4 +13,4 @@ const useMainStore = create<MainStore>()((set) => ({
})),
}));
export default useMainStore;
export default useStore;