Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#29 fix: 데이터 오류 수정 #43

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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