Skip to content

Commit dc974ea

Browse files
authored
Merge pull request #79 from YAPP-Github/fix/#78
[FIX] 불참 체크박스 UX 개선 (캘린더 블러킹 제거 및 자동 해제)
2 parents 6f19c8a + bb658bd commit dc974ea

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/features/participant-edit-date/model/useParticipantEditDate.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ export function useParticipantEditDate(meetingId: string) {
147147
isSubmitting,
148148
isCtaActive,
149149
handleAllImpossibleChange,
150-
onDateClick: handleDateChange, // 어댑터용 (Date[] => void)
150+
onDateClick: (dates: Date[]) => {
151+
if (isAllImpossible) {
152+
setIsAllImpossible(false);
153+
}
154+
handleDateChange(dates);
155+
},
151156
handleBack,
152157
handleSubmit,
153158
isSuccessModalOpen: successModal.isOpen,

src/features/participant-edit-date/ui/ParticipantEditDatePage.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ export default function ParticipantEditDatePage({
6262
availableDates={availableDates}
6363
showNextMonthTooltip={true}
6464
/>
65-
66-
{/* 불참 체크 시 캘린더 비활성 (오버레이 처리) */}
67-
{isAllImpossible && (
68-
<div className='absolute inset-0 z-10 bg-white/50' />
69-
)}
7065
</div>
7166

7267
{/* 2-4. '모든 날짜에 참여가 어려워요' 체크박스 */}

src/features/participant-register-date/model/useParticipantRegisterDate.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,12 @@ export function useParticipantRegisterDate(meetingId: string) {
138138
isSubmitting,
139139
isCtaActive,
140140
handleAllImpossibleChange,
141-
onDateClick: handleDateChange,
141+
onDateClick: (dates: Date[]) => {
142+
if (isAllImpossible) {
143+
setIsAllImpossible(false);
144+
}
145+
handleDateChange(dates);
146+
},
142147
handleBack,
143148
handleSubmit,
144149
isSuccessModalOpen: successModal.isOpen,

src/features/participant-register-date/ui/ParticipantRegisterDatePage.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ export default function ParticipantRegisterDatePage({
6161
availableDates={availableDates}
6262
showNextMonthTooltip={true}
6363
/>
64-
65-
{/* 불참 체크 시 캘린더 비활성 (오버레이 처리) */}
66-
{isAllImpossible && (
67-
<div className='absolute inset-0 z-10 bg-white/50' />
68-
)}
6964
</div>
7065

7166
{/* 2-4. '모든 날짜에 참여가 어려워요' 체크박스 */}

0 commit comments

Comments
 (0)