2024-07-11 11:46:48 +05:30
|
|
|
import { configureStore } from "@reduxjs/toolkit";
|
|
|
|
|
import { setupListeners } from "@reduxjs/toolkit/query";
|
|
|
|
|
import { sponserMaster } from "../Services/sponser.service";
|
|
|
|
|
import { investmentType } from "../Services/investment.type.service";
|
|
|
|
|
import { exchangeRate } from "../Services/exchange.rate.service";
|
|
|
|
|
import { ioService } from "../Services/io.service";
|
|
|
|
|
import { investorDetails } from "../Services/investor.details.service";
|
|
|
|
|
import { investorTransaction } from "../Services/investor.transaction.service";
|
2024-07-15 12:27:23 +05:30
|
|
|
import { api } from "../Services/api.service";
|
2024-07-22 14:50:31 +05:30
|
|
|
import { keyMerits } from "../Services/Key.merits.service";
|
2024-06-20 12:09:48 +05:30
|
|
|
|
|
|
|
|
export const store = configureStore({
|
|
|
|
|
reducer: {
|
2024-07-11 11:46:48 +05:30
|
|
|
[sponserMaster.reducerPath]: sponserMaster.reducer,
|
|
|
|
|
[investmentType.reducerPath]: investmentType.reducer,
|
|
|
|
|
[exchangeRate.reducerPath]: exchangeRate.reducer,
|
|
|
|
|
[ioService.reducerPath]: ioService.reducer,
|
|
|
|
|
[investorDetails.reducerPath]: investorDetails.reducer,
|
|
|
|
|
[investorTransaction.reducerPath]: investorTransaction.reducer,
|
|
|
|
|
// Add other reducers as needed
|
2024-06-20 12:09:48 +05:30
|
|
|
},
|
|
|
|
|
middleware: (getDefaultMiddleware) =>
|
2024-07-11 11:46:48 +05:30
|
|
|
getDefaultMiddleware({
|
|
|
|
|
thunk: {
|
|
|
|
|
extraArgument: api, // Pass Axios instance as extra argument
|
|
|
|
|
},
|
2024-07-15 12:27:23 +05:30
|
|
|
}).concat(
|
|
|
|
|
sponserMaster.middleware,
|
|
|
|
|
investmentType.middleware,
|
|
|
|
|
exchangeRate.middleware,
|
|
|
|
|
ioService.middleware,
|
|
|
|
|
investorDetails.middleware,
|
2024-07-22 14:50:31 +05:30
|
|
|
investorTransaction.middleware,
|
2024-07-15 12:27:23 +05:30
|
|
|
),
|
2024-06-20 12:09:48 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
|
|
setupListeners(store.dispatch);
|
|
|
|
|
|
2024-07-11 11:46:48 +05:30
|
|
|
export default store;
|
2024-07-18 14:32:11 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|