From 2977dfdce7cc1af0e13382a49b1d73975dde54b3 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Mon, 15 Apr 2024 20:14:16 +0300 Subject: [PATCH] MSP-3174 add securityLogServiceApi in store --- src/stores/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/index.tsx b/src/stores/index.tsx index fb7f3b8..7ab020d 100644 --- a/src/stores/index.tsx +++ b/src/stores/index.tsx @@ -6,12 +6,12 @@ import { createContext, Dispatch, SetStateAction } from 'react' import accessListApi from '@services/accessListService.ts' import appApi from '@services/appService.ts' import roleApi from '@services/roleService.ts' +import securityLogServiceApi from '@services/securityLogService.ts' import userServiceApi from '@services/userService.ts' import routeApi from '@services/routeService.ts' import profileReducer from './redusers/ProfileSlice.ts' - export interface ContextProps { setTheme: Dispatch< SetStateAction<{ algorithm: (token: SeedToken) => MapToken }> @@ -26,6 +26,7 @@ const rootReducer = combineReducers({ profileReducer, [roleApi.reducerPath]: roleApi.reducer, [userServiceApi.reducerPath]: userServiceApi.reducer, + [securityLogServiceApi.reducerPath]: securityLogServiceApi.reducer, [appApi.reducerPath]: appApi.reducer, [accessListApi.reducerPath]: accessListApi.reducer, [routeApi.reducerPath]: routeApi.reducer @@ -37,6 +38,8 @@ export const setupStore = () => middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat( roleApi.middleware, + userServiceApi.middleware, + securityLogServiceApi.middleware, appApi.middleware, accessListApi.middleware, routeApi.middleware,