[actions, api] Live alarm 설정/해제 추가

Detail Notes :

1. IF-LGSP-012, actionTypes, action 추가
2. IF-LGSP-306, 네트워크 상태 관리 예외 처리
This commit is contained in:
younghoon100.park
2024-03-21 13:26:08 +09:00
parent 50298dbdd0
commit 55392aaa84
4 changed files with 37 additions and 9 deletions

View File

@@ -82,15 +82,17 @@ export const getBrandLayoutInfo = (props) => (dispatch, getState) => {
// Featured Brands Live 채널 정보 조회 IF-LGSP-306
export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
const { patnrId } = props;
const { patnrId, upcoming } = props;
dispatch({
type: types.GET_BRAND_LIVE_CHANNEL_INFO,
payload: {
data: getState().brand.brandLiveChannelInfoData.data,
status: "pending",
},
});
if (upcoming === undefined) {
dispatch({
type: types.GET_BRAND_LIVE_CHANNEL_INFO,
payload: {
data: getState().brand.brandLiveChannelInfoData.data,
status: "pending",
},
});
}
const onSuccess = (response) => {
console.log("@@ getBrandLiveChannelInfo onSuccess ", response.data);