[FeaturedBrandsPanel, TabLayout] issue fixed, SHOPTIME-2830, SHOPTIME-2867
This commit is contained in:
@@ -9,7 +9,6 @@ export const getBrandList = () => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandList onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_LIST,
|
||||
@@ -17,6 +16,8 @@ export const getBrandList = () => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -44,7 +45,6 @@ export const getBrandLayoutInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandLayoutInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_LAYOUT_INFO,
|
||||
@@ -52,6 +52,8 @@ export const getBrandLayoutInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -79,7 +81,6 @@ export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandLiveChannelInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_LIVE_CHANNEL_INFO,
|
||||
@@ -87,6 +88,8 @@ export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -144,7 +147,6 @@ export const getBrandTSVInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandTSVInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_TSV_INFO,
|
||||
@@ -152,6 +154,8 @@ export const getBrandTSVInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -179,7 +183,6 @@ export const getBrandRecommendedShowInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandRecommendedShowInfo onSuccess", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
const brandRecommendedShowCategoryInfo =
|
||||
response.data.data?.brandRecommendedShowCategoryInfo;
|
||||
@@ -216,6 +219,8 @@ export const getBrandRecommendedShowInfo = (props) => (dispatch, getState) => {
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -243,7 +248,6 @@ export const getBrandCreatorsInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandCreatorsInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_CREATORS_INFO,
|
||||
@@ -251,6 +255,8 @@ export const getBrandCreatorsInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -278,7 +284,6 @@ export const getBrandSeriesInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandSeriesInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_SERIES_INFO,
|
||||
@@ -286,6 +291,8 @@ export const getBrandSeriesInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -313,7 +320,6 @@ export const getBrandCategoryInfo = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandCategoryInfo onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_CATEGORY_INFO,
|
||||
@@ -321,6 +327,8 @@ export const getBrandCategoryInfo = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -378,7 +386,6 @@ export const getBrandBestSeller = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandBestSeller onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_BEST_SELLER,
|
||||
@@ -386,6 +393,8 @@ export const getBrandBestSeller = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
@@ -413,7 +422,6 @@ export const getBrandShowroom = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandShowroom onSuccess ", response.data);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_SHOWROOM,
|
||||
@@ -421,6 +429,8 @@ export const getBrandShowroom = (props) => (dispatch, getState) => {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
|
||||
Reference in New Issue
Block a user