Skip to content

Commit

Permalink
Merge pull request #299 from Anifriends/bug/205
Browse files Browse the repository at this point in the history
fix(common): 봉사자 및 보호소 앱의 상세 페이지에서 이미지가 없으면 캐러샐 랜더하지 않도록 수정
  • Loading branch information
kutta97 authored Dec 2, 2023
2 parents 0b1f9d5 + 0098402 commit 555eff6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/shelter/src/pages/volunteers/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ function VolunteersDetail() {

return (
<Box>
<ImageCarousel imageUrls={recruitment.imageUrls} />
{recruitment.imageUrls.length > 0 && (
<ImageCarousel imageUrls={recruitment.imageUrls} />
)}
<VStack spacing="5px" align="flex-start" p={4}>
<LabelText
labelTitle={label.labelTitle}
Expand Down
4 changes: 3 additions & 1 deletion apps/volunteer/src/pages/volunteers/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ function VolunteersDetail() {

return (
<Box pb={118}>
<ImageCarousel imageUrls={data.recruitmentImageUrls} />
{data.recruitmentImageUrls.length > 0 && (
<ImageCarousel imageUrls={data.recruitmentImageUrls} />
)}
<VStack spacing="5px" align="flex-start" p={4}>
{isRecruitmentClosed ? (
<Label labelTitle="마감완료" type="GRAY" />
Expand Down

0 comments on commit 555eff6

Please sign in to comment.