diff --git a/src/widgets/calendar/CalendarTile.tsx b/src/widgets/calendar/CalendarTile.tsx index b8a95e785..b1951ed89 100644 --- a/src/widgets/calendar/CalendarTile.tsx +++ b/src/widgets/calendar/CalendarTile.tsx @@ -3,11 +3,11 @@ import { Calendar } from '@mantine/dates'; import { IconCalendarTime } from '@tabler/icons-react'; import { useSession } from 'next-auth/react'; import { useState } from 'react'; +import { useEditModeStore } from '~/components/Dashboard/Views/useEditModeStore'; +import { useConfigContext } from '~/config/provider'; import { getLanguageByCode } from '~/tools/language'; import { RouterOutputs, api } from '~/utils/api'; -import { useEditModeStore } from '~/components/Dashboard/Views/useEditModeStore'; -import { useConfigContext } from '~/config/provider'; import { defineWidget } from '../helper'; import { IWidget } from '../widgets'; import { CalendarDay } from './CalendarDay'; @@ -33,22 +33,12 @@ const definition = defineWidget({ radarrReleaseType: { type: 'select', defaultValue: 'inCinemas', - data: [ - { value: 'inCinemas' }, - { value: 'physicalRelease' }, - { value: 'digitalRelease' }, - ], + data: [{ value: 'inCinemas' }, { value: 'physicalRelease' }, { value: 'digitalRelease' }], }, fontSize: { type: 'select', defaultValue: 'xs', - data: [ - { value: 'xs' }, - { value: 'sm' }, - { value: 'md' }, - { value: 'lg' }, - { value: 'xl' }, - ], + data: [{ value: 'xs' }, { value: 'sm' }, { value: 'md' }, { value: 'lg' }, { value: 'xl' }], }, }, gridstack: { @@ -83,7 +73,10 @@ function CalendarTile({ widget }: CalendarTileProps) { configName: configName!, month: month.getMonth() + 1, year: month.getFullYear(), - options: { useSonarrv4: widget.properties.useSonarrv4, showUnmonitored: widget.properties.showUnmonitored }, + options: { + useSonarrv4: widget.properties.useSonarrv4, + showUnmonitored: widget.properties.showUnmonitored, + }, }, { staleTime: 1000 * 60 * 60 * 5, @@ -105,7 +98,7 @@ function CalendarTile({ widget }: CalendarTileProps) { style={{ position: 'relative' }} date={month} maxLevel="month" - hasNextLevel={false} + minLevel="month" styles={{ calendarHeader: { maxWidth: 'inherit',