[actions, api, reducer] add new action type (GET_BRAND_RECENTLY_AIRED)
This commit is contained in:
@@ -458,6 +458,38 @@ export const getBrandShowroom = (props) => (dispatch, getState) => {
|
||||
);
|
||||
};
|
||||
|
||||
// Featured Brands Recently Aired 조회 IF-LGSP-373
|
||||
export const getBrandRecentlyAired = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandRecentlyAired onSuccess ", response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_RECENTLY_AIRED,
|
||||
payload: {
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("getBrandRecentlyAired onFail ", error);
|
||||
// dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_BRAND_RECENTLY_AIRED,
|
||||
{ patnrId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
export const setBrandLiveChannelUpcoming = (props) => (dispatch, getState) => {
|
||||
const { showId, strtDt } = props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user