34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
/*
|
|
* File: rootReducer.ts
|
|
* Description: Root reducer combining all feature slices for Redux store
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|
|
|
|
import { combineReducers } from '@reduxjs/toolkit';
|
|
// Import feature slices
|
|
import profileReducer from '../modules/Profile/redux/profileSlice';
|
|
import settingsReducer from '../modules/Profile/redux/settingsSlice';
|
|
// Add other slices as needed, e.g.:
|
|
import dashboardReducer from '../modules/Dashboard/redux/dashboardSlice';
|
|
import authReducer from '../modules/Auth/redux/authSlice';
|
|
|
|
// RootState type for use throughout the app
|
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
|
|
// Combine all reducers into the rootReducer
|
|
const rootReducer = combineReducers({
|
|
profile: profileReducer,
|
|
settings: settingsReducer,
|
|
dashboard:dashboardReducer,
|
|
auth:authReducer
|
|
// Add other reducers here
|
|
});
|
|
|
|
export default rootReducer;
|
|
|
|
/*
|
|
* End of File: rootReducer.ts
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|