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