🐛 Fix edit modal zIndex and imports

This commit is contained in:
ajnart
2023-04-17 15:07:18 +09:00
parent 543113292b
commit 252651c1fb
3 changed files with 2 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ export const WidgetsMenu = ({ integration, widget }: WidgetsMenuProps) => {
// Cast as the right type for the correct widget // Cast as the right type for the correct widget
widgetOptions: widgetDefinitionObject.options as any, widgetOptions: widgetDefinitionObject.options as any,
}, },
zIndex: 5, zIndex: 250,
}); });
}; };

View File

@@ -1,4 +1,4 @@
import { ActionIcon, Box, Button, Indicator, IndicatorProps, Popover } from '@mantine/core'; import { Box, Indicator, IndicatorProps, Popover } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks'; import { useDisclosure } from '@mantine/hooks';
import { isToday } from '../../tools/shared/time/date.tool'; import { isToday } from '../../tools/shared/time/date.tool';
import { MediaList } from './MediaList'; import { MediaList } from './MediaList';

View File

@@ -9,7 +9,6 @@ import { defineWidget } from '../helper';
import { IWidget } from '../widgets'; import { IWidget } from '../widgets';
import { CalendarDay } from './CalendarDay'; import { CalendarDay } from './CalendarDay';
import { MediasType } from './type'; import { MediasType } from './type';
import { useColorTheme } from '../../tools/color';
const definition = defineWidget({ const definition = defineWidget({
id: 'calendar', id: 'calendar',
@@ -51,7 +50,6 @@ interface CalendarTileProps {
function CalendarTile({ widget }: CalendarTileProps) { function CalendarTile({ widget }: CalendarTileProps) {
const { name: configName } = useConfigContext(); const { name: configName } = useConfigContext();
const [month, setMonth] = useState(new Date()); const [month, setMonth] = useState(new Date());
const { secondaryColor } = useColorTheme();
const { data: medias } = useQuery({ const { data: medias } = useQuery({
queryKey: ['calendar/medias', { month: month.getMonth(), year: month.getFullYear() }], queryKey: ['calendar/medias', { month: month.getMonth(), year: month.getFullYear() }],