feat: Add shop ID slice to store configuration
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user