diff options
author | 2024-07-11 02:24:27 +0100 | |
---|---|---|
committer | 2024-07-11 02:24:27 +0100 | |
commit | f404479d2aea3498ff1bb8b31f3e24de39f9b0bd (patch) | |
tree | a37bc3e3be18c1cb689698c92c2d103186328075 | |
parent | Disable StrictMode for React (diff) |
Add voteReducer to rootReducer Redux configuration
-rw-r--r-- | src/store.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store.ts b/src/store.ts index 1b9807b..e516bba 100644 --- a/src/store.ts +++ b/src/store.ts @@ -1,9 +1,11 @@ import { combineReducers, configureStore } from "@reduxjs/toolkit"; import authorizationReducer from "./slices/authorization"; +import voteReducer from "./slices/votes"; const rootReducer = combineReducers({ - authorization: authorizationReducer + authorization: authorizationReducer, + vote: voteReducer }); export const setupStore = (preloadedState?: Partial<RootState>) => { |