-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore.js
31 lines (29 loc) · 1.14 KB
/
store.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { configureStore } from '@reduxjs/toolkit';
import basketReducer from "./features/basketSlice";
import supplyReducer from "./features/supplyslice";
import userReducer from "./features/userSlice";
import { applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import locationReducer from "./features/locationSlice";
import orderSlice from "./features/orderSlice";
import darkmodeSlice from "./features/darkmodeSlice";
import zoneReducer from "./features/zoneSlice";
import phoneUserSlice from "./features/phoneUserSlice";
import distanceSlice from "./features/distanceSlice";
import deliverySlice from './features/deliverySlice';
import firestoreidSlice from './features/firestoreidSlice';
export const store = configureStore({
reducer:{
basket: basketReducer,
supply: supplyReducer,
user: userReducer,
location: locationReducer,
order: orderSlice,
darkmode: darkmodeSlice,
zone: zoneReducer,
phoneUser: phoneUserSlice,
distance: distanceSlice,
delivery: deliverySlice,
documentId: firestoreidSlice,
},
},applyMiddleware(thunkMiddleware));