diff --git a/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx b/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx index c399fdf..87249cd 100644 --- a/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx +++ b/src/pages/artBuyerPage/components/menuMyPage/Auction/index.tsx @@ -26,7 +26,7 @@ export const ArtBuyerAuction = () => { // status 값을 한글로 변환하는 함수 const getStatusText = (status: string) => { const statusMap: Record = { - BID: '응찰중', + BID: '경매완료', PARTICIPATE: '입찰중', }; return statusMap[status] || status; // 기본적으로 원래 상태값 유지 @@ -55,7 +55,7 @@ export const ArtBuyerAuction = () => { {`₩${auction.bid_price.toLocaleString()}`} {getStatusText(auction.status)} - {auction.status === '입찰중' && ( + {auction.status === 'PARTICIPATE' && ( 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 c3b82d8..dd494cd 100644 --- a/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx +++ b/src/pages/artBuyerPage/components/menuMyPage/Payment/index.tsx @@ -53,10 +53,8 @@ export const Payment = () => { {getPaymentStatus(payment.payment_status)} - {payment.payment_status === '결제 대기중' && ( - handleBtnClick(payment.auction_id)} - > + {payment.payment_status === 'PENDING' && ( + handleBtnClick(payment.id)}> 결제하기 )} diff --git a/src/pages/artBuyerPage/components/menuMyPage/index.tsx b/src/pages/artBuyerPage/components/menuMyPage/index.tsx index af300cf..4c1aed7 100644 --- a/src/pages/artBuyerPage/components/menuMyPage/index.tsx +++ b/src/pages/artBuyerPage/components/menuMyPage/index.tsx @@ -20,8 +20,8 @@ export const MenuMyPage = ({ setSelectedMenu }: MenuMyPageProps) => { - + ); diff --git a/src/pages/artBuyerPage/components/purchasedWorks/index.tsx b/src/pages/artBuyerPage/components/purchasedWorks/index.tsx index 744ea2b..dc4cb0b 100644 --- a/src/pages/artBuyerPage/components/purchasedWorks/index.tsx +++ b/src/pages/artBuyerPage/components/purchasedWorks/index.tsx @@ -8,8 +8,15 @@ import { import { Artwork } from '@/components/common/ArtWork'; import { useGetBuyerMypage } from '../../hooks/useGetBuyerMypage'; +import { useNavigate } from 'react-router-dom'; const PurchasedWorks = () => { + const navigate = useNavigate(); + // 작품 클릭 시 작품 상세 페이지로 이동 + const handleArtworkClick = (artworkId: number) => { + navigate(`/artwork/${artworkId}`); + }; + const { userMypageData } = useGetBuyerMypage(); const artworks = userMypageData.myCollection.artworks; @@ -30,6 +37,7 @@ const PurchasedWorks = () => { artworkWidth={artwork.width} artworkHeight={artwork.height} artworkId={artwork.id} + onClick={() => handleArtworkClick(artwork.id)} /> ))} diff --git a/src/pages/authorPage/components/menuMyPage/Auction/index.tsx b/src/pages/authorPage/components/menuMyPage/Auction/index.tsx index f7018db..d95ba56 100644 --- a/src/pages/authorPage/components/menuMyPage/Auction/index.tsx +++ b/src/pages/authorPage/components/menuMyPage/Auction/index.tsx @@ -48,7 +48,7 @@ export const AuthorAuction = () => { {auction.status === 'BID' ? '경매완료' : auction.status === 'PARTICIPATE' - ? '참여중' + ? '입찰중' : auction.status}