diff --git a/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx b/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx index 85d429e..f1089e4 100644 --- a/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx +++ b/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx @@ -23,6 +23,15 @@ export const ArtBuyerAuction = () => { navigate(`/auction/${auctionId}`); }; + // status 값을 한글로 변환하는 함수 + const getStatusText = (status: string) => { + const statusMap: Record = { + BID: '응찰중', + PARTICIPATE: '입찰중', + }; + return statusMap[status] || status; // 기본적으로 원래 상태값 유지 + }; + return (

경매

@@ -44,9 +53,9 @@ export const ArtBuyerAuction = () => { {new Date(auction.bid_date).toLocaleDateString('ko-KR')} {`₩${auction.bid_price.toLocaleString()}`} - {auction.status} + {getStatusText(auction.status)} - {auction.status === '응찰중' && ( + {auction.status === 'BID' && ( handleBtnClick(auction.auction_id)} > diff --git a/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx b/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx index e6ecb49..90bdc8c 100644 --- a/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx +++ b/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx @@ -24,6 +24,12 @@ export const Payment = () => { initiatePayment(paymentId); }; + const getPaymentStatus = (status: string) => { + if (status === 'COMPLETED') return '결제 완료'; + if (status === 'PENDING') return '낙찰'; + return status; + }; + return (

결제

@@ -45,7 +51,7 @@ export const Payment = () => { {new Date(payment.created_at).toLocaleDateString('ko-KR')} - {payment.payment_status} + {getPaymentStatus(payment.payment_status)} {payment.payment_status === '결제 대기중' && (