diff --git a/public/locales/en/modules/weather.json b/public/locales/en/modules/weather.json index 405c36263..816b907b0 100644 --- a/public/locales/en/modules/weather.json +++ b/public/locales/en/modules/weather.json @@ -3,6 +3,7 @@ "name": "Weather", "description": "Look up the current weather in your location", "settings": { + "title": "Settings for weather integration", "displayInFahrenheit": { "label": "Display in Fahrenheit" }, @@ -29,4 +30,4 @@ "unknown": "Unknown" } } -} \ No newline at end of file +} diff --git a/src/components/Dashboard/Tiles/Calendar/CalendarDay.tsx b/src/components/Dashboard/Tiles/Calendar/CalendarDay.tsx new file mode 100644 index 000000000..830dc5901 --- /dev/null +++ b/src/components/Dashboard/Tiles/Calendar/CalendarDay.tsx @@ -0,0 +1,64 @@ +import { Box, Indicator, IndicatorProps, Popover } from '@mantine/core'; +import { useDisclosure } from '@mantine/hooks'; +import { MediaList } from './MediaList'; +import { MediasType } from './type'; + +interface CalendarDayProps { + date: Date; + medias: MediasType; +} + +export const CalendarDay = ({ date, medias }: CalendarDayProps) => { + const [opened, { close, open }] = useDisclosure(false); + + if (medias.totalCount === 0) { + return