From 3e31a4d38e82bf11fb9f52a7e6feee31dfd79343 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 17 May 2022 00:19:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Better=20style=20events=20in=20t?= =?UTF-8?q?he=20calendar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modules/calendar/CalendarModule.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/modules/calendar/CalendarModule.tsx b/src/components/modules/calendar/CalendarModule.tsx index dd84050fa..8dcbdae9e 100644 --- a/src/components/modules/calendar/CalendarModule.tsx +++ b/src/components/modules/calendar/CalendarModule.tsx @@ -1,5 +1,5 @@ /* eslint-disable react/no-children-prop */ -import { Popover, Box, ScrollArea, Divider, Indicator } from '@mantine/core'; +import { Popover, Box, ScrollArea, Divider, Indicator, useMantineTheme } from '@mantine/core'; import React, { useEffect, useState } from 'react'; import { Calendar } from '@mantine/dates'; import { showNotification } from '@mantine/notifications'; @@ -93,6 +93,7 @@ function DayComponent(props: any) { radarrmedias, }: { renderdate: Date; sonarrmedias: []; radarrmedias: [] } = props; const [opened, setOpened] = useState(false); + const theme = useMantineTheme(); const day = renderdate.getDate(); // Itterate over the medias and filter the ones that are on the same day @@ -126,8 +127,7 @@ function DayComponent(props: any) { width={700} onClose={() => setOpened(false)} opened={opened} - // TODO: Fix this !! WTF ? - target={`‏ ${day}`} + target={day} > {sonarrFiltered.map((media: any, index: number) => (