feat: Add shop ID slice to store configuration

This commit is contained in:
ALi Josheghani
2024-10-30 11:32:57 +03:30
parent 72eca494b0
commit b853d7df01

View File

@@ -17,6 +17,7 @@ import tokenReducer from "./slices/token";
import configId from "./slices/configId"; import configId from "./slices/configId";
import categoryId from "./slices/categoryId"; import categoryId from "./slices/categoryId";
import isPaymentGateway from "./slices/isPaymentGateway"; import isPaymentGateway from "./slices/isPaymentGateway";
import shopId from "./slices/shop-id";
// Encryption settings // Encryption settings
const secretKey = "token-encrypt-api"; const secretKey = "token-encrypt-api";
@@ -46,6 +47,7 @@ const persistedTokenReducer = persistReducer(persistConfigToken, tokenReducer);
const store = configureStore({ const store = configureStore({
reducer: { reducer: {
token: persistedTokenReducer, token: persistedTokenReducer,
shop_id: shopId,
configIdState: configId, configIdState: configId,
categoryIdState: categoryId, categoryIdState: categoryId,
isPaymentGatewayState: isPaymentGateway, isPaymentGatewayState: isPaymentGateway,