store.js 802 Bytes
Newer Older
quynhquang400@gmail.com's avatar
quynhquang400@gmail.com committed
1 2 3 4 5 6
import {configureStore} from '@reduxjs/toolkit';

import authReducer from '../screens/authentication/authSlice';
import loaderReducer from './loaderSlice';
import homeReducer from '../screens/home/homeSlice';
import onLeaveReducer from '../screens/onleave/onLeaveSlice';
7
import confirmDateReducer from '../screens/confirm_date/confirmDateSlice';
dungtnguyen's avatar
dungtnguyen committed
8
import notificationReducer from '../screens/notification/notificationSlice';
9

quynhquang400@gmail.com's avatar
quynhquang400@gmail.com committed
10 11 12 13 14
const rootReducer = {
  loader: loaderReducer,
  auth: authReducer,
  home: homeReducer,
  onLeave: onLeaveReducer,
15
  confirmDate: confirmDateReducer,
dungtnguyen's avatar
dungtnguyen committed
16
  notification: notificationReducer,
quynhquang400@gmail.com's avatar
quynhquang400@gmail.com committed
17 18 19 20 21 22 23 24 25 26
};

const store = configureStore({
  reducer: rootReducer,
  middleware: getDefaultMiddleware =>
    getDefaultMiddleware({
      serializableCheck: false,
    }),
});
export default store;