-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 파비콘 수정 * fix: 주문 금액 합계 주문별로 수정 * design: green 색상 추가 * feat: 관리자 주문조회 페이지 발송완료 버튼 구현 * feat: 엑셀 추츨 기능 추가 * feat: 주문번호 출력 * design: 주문조회 테이블 스타일 수정 * fix: QA반영(라이팅, 금액표기, 테이블 스타일) * feat: 체험/판매 상품 그룹화 * fix: 주문 조회 필터링 오류 수정 * feat: 주문삭제 로직 추가 * feat: 약관 내용 추가
- Loading branch information
Showing
38 changed files
with
741 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { patch } from "@apis/api"; | ||
import { QUERY_KEY } from "@apis/queryKeys/queryKeys"; | ||
import { useMutation, useQueryClient } from "@tanstack/react-query"; | ||
import { ErrorResponse, MutateResponseType } from "@types"; | ||
|
||
const patchDeliveryShipped = async ( | ||
orderNumberList: number[] | ||
): Promise<MutateResponseType> => { | ||
try { | ||
const response = await patch<MutateResponseType>( | ||
`api/v1/delivery/shipped`, | ||
orderNumberList | ||
); | ||
return response.data; | ||
} catch (error) { | ||
const errorResponse = error as ErrorResponse; | ||
const errorData = errorResponse.response.data; | ||
throw errorData; | ||
} | ||
}; | ||
|
||
export const usePatchDeliveryShipped = () => { | ||
const queryClient = useQueryClient(); | ||
return useMutation({ | ||
mutationFn: (orderNumberList: number[]) => | ||
patchDeliveryShipped(orderNumberList), | ||
onSuccess: () => { | ||
queryClient.invalidateQueries({ queryKey: [QUERY_KEY.ORDER_LIST] }); | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { SVGProps } from "react"; | ||
const SvgIcClose = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
{...props} | ||
> | ||
<mask | ||
id="ic_close_svg__a" | ||
width={24} | ||
height={24} | ||
x={0} | ||
y={0} | ||
maskUnits="userSpaceOnUse" | ||
style={{ | ||
maskType: "alpha", | ||
}} | ||
> | ||
<path fill="#D9D9D9" d="M0 0h24v24H0z" /> | ||
</mask> | ||
<g mask="url(#ic_close_svg__a)"> | ||
<path | ||
fill="#1C1B1F" | ||
d="M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6z" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
export default SvgIcClose; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { SVGProps } from "react"; | ||
const SvgIcDelete = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
{...props} | ||
> | ||
<mask | ||
id="ic_delete_svg__a" | ||
width={24} | ||
height={24} | ||
x={0} | ||
y={0} | ||
maskUnits="userSpaceOnUse" | ||
style={{ | ||
maskType: "alpha", | ||
}} | ||
> | ||
<path fill="#D9D9D9" d="M0 0h24v24H0z" /> | ||
</mask> | ||
<g mask="url(#ic_delete_svg__a)"> | ||
<path | ||
fill="#1C1B1F" | ||
d="M7 21q-.824 0-1.412-.587A1.93 1.93 0 0 1 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .824-.587 1.413A1.93 1.93 0 0 1 17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2z" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
export default SvgIcDelete; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { SVGProps } from "react"; | ||
const SvgIcDownload = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 17 16" | ||
{...props} | ||
> | ||
<mask | ||
id="ic_download_svg__a" | ||
width={17} | ||
height={16} | ||
x={0} | ||
y={0} | ||
maskUnits="userSpaceOnUse" | ||
style={{ | ||
maskType: "alpha", | ||
}} | ||
> | ||
<path fill="#D9D9D9" d="M.5 0h16v16H.5z" /> | ||
</mask> | ||
<g mask="url(#ic_download_svg__a)"> | ||
<path | ||
fill="#EC6732" | ||
d="M8.5 10.667 5.167 7.333l.933-.966L7.834 8.1V2.667h1.333V8.1L10.9 6.367l.934.966zm-4 2.666q-.55 0-.941-.391A1.28 1.28 0 0 1 3.167 12v-2H4.5v2h8v-2h1.334v2q0 .55-.392.942a1.28 1.28 0 0 1-.942.391z" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
export default SvgIcDownload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.