[action, reducer] onSaleActions, onSaleReducer 수정
Detail Notes : 1. network status 추가
This commit is contained in:
@@ -4,14 +4,25 @@ import { types } from "./actionTypes";
|
||||
|
||||
// On Sale 조회 IF-LGSP-086
|
||||
export const getOnSaleInfo = (props) => (dispatch, getState) => {
|
||||
const { categoryIncFlag, saleInfosIncFlag, lgCatCd } = props;
|
||||
const { categoryIncFlag, lgCatCd, saleInfosIncFlag } = props;
|
||||
|
||||
dispatch({
|
||||
type: types.GET_ON_SALE_INFO,
|
||||
payload: {
|
||||
data: getState().onSale.onSaleData.data,
|
||||
status: "pending",
|
||||
},
|
||||
});
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("getOnSaleInfo onSuccess ", response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_ON_SALE_INFO,
|
||||
payload: response.data.data,
|
||||
payload: {
|
||||
data: response.data.data,
|
||||
status: "fulfilled",
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user