mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
🐛 Fix edit modal zIndex and imports
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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() }],
|
||||||
|
|||||||
Reference in New Issue
Block a user