From 47e46a3a30e00ab77dc0e808e34019226fd8984f Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Fri, 15 Sep 2023 18:15:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Calendar=20close=20modal=20on=20?= =?UTF-8?q?click=20when=20opened=20(#1396)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/calendar/CalendarDay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/calendar/CalendarDay.tsx b/src/widgets/calendar/CalendarDay.tsx index 2460a2a0c..660e53894 100644 --- a/src/widgets/calendar/CalendarDay.tsx +++ b/src/widgets/calendar/CalendarDay.tsx @@ -65,7 +65,7 @@ export const CalendarDay = ({ date, medias, size }: CalendarDayProps) => { > 0 ? open : undefined} + onClick={medias.totalCount > 0 && !opened ? open : close} h="100%" w="100%" sx={{