From f4397256bdbefb6408469947b7da38ce7a1c34a6 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Thu, 14 May 2026 21:49:37 +0800 Subject: [PATCH] refactor: remove unused Redux store hooks Delete obsolete Redux store configuration files as part of the Zustand migration. These files are no longer referenced after the store refactor. --- src/store/hooks.ts | 5 ----- src/store/index.ts | 8 -------- 2 files changed, 13 deletions(-) delete mode 100644 src/store/hooks.ts delete mode 100644 src/store/index.ts diff --git a/src/store/hooks.ts b/src/store/hooks.ts deleted file mode 100644 index 59c8417..0000000 --- a/src/store/hooks.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { useDispatch, useSelector, type TypedUseSelectorHook } from "react-redux"; -import type { RootState, AppDispatch } from "./index"; - -export const useAppDispatch = () => useDispatch(); -export const useAppSelector: TypedUseSelectorHook = useSelector; \ No newline at end of file diff --git a/src/store/index.ts b/src/store/index.ts deleted file mode 100644 index 30d7119..0000000 --- a/src/store/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { configureStore } from "@reduxjs/toolkit"; - -export const store = configureStore({ - reducer: {}, -}); - -export type RootState = ReturnType; -export type AppDispatch = typeof store.dispatch; \ No newline at end of file