diff --git a/src/api/domain/detail/types.ts b/src/api/domain/detail/types.ts index d9f0f1bd..60f32c60 100644 --- a/src/api/domain/detail/types.ts +++ b/src/api/domain/detail/types.ts @@ -33,6 +33,7 @@ export type WishpoolChosenGiftListResponse = { giftId: number; giftName: string; giftImage: string; + imageUrl: string; }, ]; }; diff --git a/src/api/domain/pick/types.ts b/src/api/domain/pick/types.ts index 675eaf82..817900dc 100644 --- a/src/api/domain/pick/types.ts +++ b/src/api/domain/pick/types.ts @@ -6,6 +6,7 @@ export type PickGiftListResponse = { celebrant: string; birthDay: string; endPickDate: string; + imageKey?: string; }; export type PickGiftRequest = { diff --git a/src/app/pick/invite/page.tsx b/src/app/pick/invite/page.tsx index 2906d0bb..d8450967 100644 --- a/src/app/pick/invite/page.tsx +++ b/src/app/pick/invite/page.tsx @@ -36,6 +36,10 @@ const InviteHandler = () => { return ; } + const displayImageSrc = pickData?.imageKey + ? `${process.env.NEXT_PUBLIC_WISHPOOL_IMAGE_BASE_URL}/${pickData.imageKey}` + : WishpoolCardImage; + return ( <>
@@ -58,7 +62,7 @@ const InviteHandler = () => {
이벤트 카드 이미지 { className="absolute -top-5 left-1/2 -translate-x-1/2 -translate-y-1/2" /> {giftData?.selectedGiftsListDto.map( - ({ giftId, giftName, giftImage }) => ( + ({ giftId, giftName, giftImage, imageUrl }) => ( ), )} @@ -59,7 +59,7 @@ const FinalPage = () => {