myOrder popup

This commit is contained in:
hyunwoo93.cha
2024-07-12 10:37:23 +09:00
parent eca8713e80
commit a24e1de0c6
6 changed files with 186 additions and 19 deletions

View File

@@ -165,7 +165,7 @@ export const getMyinfoOrderDetailSearch =
};
export const getMyinfoOrderShippingSearch =
(params) => (dispatch, getState) => {
(params, callback) => (dispatch, getState) => {
const { mbrNo, ordNo, patnrId, prdtId, prodSno } = params;
const onSuccess = (response) => {
@@ -175,6 +175,8 @@ export const getMyinfoOrderShippingSearch =
type: types.GET_MY_INFO_ORDER_SHIPPING_SEARCH,
payload: response.data.data,
});
if (callback) callback(response.data);
};
const onFail = (error) => {