Skip to content

Commit

Permalink
Merge pull request #43 from team-Ollie/15-feature-Calendar-Detail-Modal
Browse files Browse the repository at this point in the history
#29 fix: 데이터 오류 수정
  • Loading branch information
leejin-rho authored Jul 2, 2024
2 parents bda5727 + 89677d7 commit 7094196
Showing 1 changed file with 39 additions and 33 deletions.
72 changes: 39 additions & 33 deletions components/calendar/CalendarModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,49 @@ const CalendarModal = ({
useGetProgramDetail(programIdx);

return (
<div
className="w-screen h-full flex flex-col items-center justify-center fixed bg-[rgba(1,0,0,0.4)] z-10"
key={programIdx}
>
<div className="flex flex-col relative items-center justify-center w-[80%] h-[60%] bg-white z-10 rounded-xl py-5 px-8 gap-3">
<Close className="absolute right-3 top-3" onClick={toggleModal} />
<div className="h0 text-main-color h-fit">{data.name}</div>
<div className="flex flex-col mt-3 flex-grow h-full w-full gap-3 overflow-auto scrollbar-hide">
{data.locatedPlace && (
<TextLine title="위치" className="" children={data.locatedPlace} />
)}
data && (
<div
className="w-screen h-full flex flex-col items-center justify-center fixed bg-[rgba(1,0,0,0.4)] z-10"
key={programIdx}
>
<div className="flex flex-col relative items-center justify-center w-[80%] h-[60%] bg-white z-10 rounded-xl py-5 px-8 gap-3">
<Close className="absolute right-3 top-3" onClick={toggleModal} />
<div className="h0 text-main-color h-fit">{data.name}</div>
<div className="flex flex-col mt-3 flex-grow h-full w-full gap-3 overflow-auto scrollbar-hide">
{data.locatedPlace && (
<TextLine
title="위치"
className=""
children={data.locatedPlace}
/>
)}

<TextLine title="기간">
{data.openDate.year}{data.openDate.month}{data.openDate.day}
{" ~ "}
{data.dueDate.year}{data.dueDate.month}{data.dueDate.day}
</TextLine>
<TextLine title="기간">
{data.openDate.year}{data.openDate.month}{data.openDate.day}
{" ~ "}
{data.dueDate.year}{data.dueDate.month}{data.dueDate.day}
</TextLine>

<TextLine title="주관센터" className="" children={data.host} />
<TextLine
title="활동 요일"
className=""
children={data.schedule}
addExpFront="매주 "
addExpBack="요일마다"
/>
{data.location && (
<TextLine title="지역" className="" children={data.location} />
)}
<TextLine
title="기타 사항"
className=""
children={data.description}
/>
<TextLine title="주관센터" className="" children={data.host} />
<TextLine
title="활동 요일"
className=""
children={data.schedule}
addExpFront="매주 "
addExpBack="요일마다"
/>
{data.location && (
<TextLine title="지역" className="" children={data.location} />
)}
<TextLine
title="기타 사항"
className=""
children={data.description}
/>
</div>
</div>
</div>
</div>
)
);
};

Expand Down

0 comments on commit 7094196

Please sign in to comment.