Skip to content

Commit

Permalink
feat: 일정 추가 및 수정 상태에 따른 조건부 렌더링 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ledraco committed Dec 5, 2024
1 parent c23441f commit d98927f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/Feed/SchedulingFeed/SchedulingFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,15 @@ const SchedulingFeed = ({
{details && (
<S.DetailWrapper>
<TableHeader columnData={columnData} />
{renderTable()}
<AvailabilityTable
minTimeSegment={minTimeSegment}
maxTimeSegment={maxTimeSegment}
availabilitySlots={availabilitySlots}
numOfParticipants={numOfParticipants}
/>
{isEditable && renderTable()}
{!isEditable && (
<AvailabilityTable
minTimeSegment={minTimeSegment}
maxTimeSegment={maxTimeSegment}
availabilitySlots={availabilitySlots}
numOfParticipants={numOfParticipants}
/>
)}
<Flex justify='space-between'>
<S.ParticipantsContainer>
<S.Participants>{`일정 작성 인원 (${numOfParticipants})`}</S.Participants>
Expand Down

0 comments on commit d98927f

Please sign in to comment.