💄 Calendar close modal on click when opened (#1396)

This commit is contained in:
Tagaishi authored and GitHub committed 2023-09-15 18:15:25 +02:00
1 parent 9b8263b8ec
commit 47e46a3a30
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ export const CalendarDay = ({ date, medias, size }: CalendarDayProps) => {
>
<Popover.Target>
<Container
onClick={medias.totalCount > 0 ? open : undefined}
onClick={medias.totalCount > 0 && !opened ? open : close}
h="100%"
w="100%"
sx={{