Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE-104/bugfix] 가상계좌 관련 API 호출 경로 수정 #105

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/axios/Orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ export async function updateOrder(
}
);

alert(response.data.message);
} catch (error) {
alert("Error:", error);
alert("error: " + error.response.data.errorMessage);
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/component/common/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default function Input(props) {
checked={props.checked}
onChange={(e) => {
setValue(e.target.value);
if (props.onChange) {
props.onChange(e);
}
}}
onClick={props.onClick}
autoComplete="off"
Expand Down
8 changes: 4 additions & 4 deletions src/constants/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export const ADD_PRODUCT_INTRODUCTION = (productId) =>
`/admin/product/${productId}/introduction`;

// 가상계좌 관리 api
export const POST_NEW_VBANK = () => `/admin/product/vbanks`;
export const GET_VBANKS = () => `/admin/product/vbanks`;
export const PUT_VBANK = (vbankId) => `/admin/product/vbanks/${vbankId}`;
export const DELETE_VBANK = (vbankId) => `/admin/product/vbanks/${vbankId}`;
export const POST_NEW_VBANK = () => `/admin/vbanks`;
export const GET_VBANKS = () => `/product/vbanks`;
export const PUT_VBANK = (vbankId) => `/admin/vbanks/${vbankId}`;
export const DELETE_VBANK = (vbankId) => `/admin/vbanks/${vbankId}`;

// 배송비 관리 api
export const GET_DEFAULT_DELIVERY_FEE = () =>
Expand Down