[FeaturedBrandsPanel] section, LIVE CHANNELS, 라이브 방송시 데이터 30초 단위로 feaching
Detail Notes : 1. 현재 주석 처리 2. action type, reducer 재설정
This commit is contained in:
@@ -119,6 +119,36 @@ export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getBrandChanInfo = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandChanInfo onSuccess ", response.data);
|
||||
dispatch({
|
||||
type: types.GET_BRAND_CHAN_INFO,
|
||||
payload: {
|
||||
data: response.data.data,
|
||||
status: "fulfilled",
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("getBrandChanInfo onFail ", error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_BRAND_LIVE_CHANNEL_INFO,
|
||||
{ patnrId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
// Featured Brands Today's Deals 정보 조회 IF-LGSP-307
|
||||
export const getBrandTSVInfo = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
|
||||
Reference in New Issue
Block a user