[actions, api, reducer] add new action type (GET_BRAND_RECENTLY_AIRED)

This commit is contained in:
younghoon100.park
2024-07-23 15:22:53 +09:00
parent d4baebf470
commit 88f03b12c4
4 changed files with 44 additions and 0 deletions

View File

@@ -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;