fix: use explicit React type imports instead of global namespace

This commit is contained in:
Thomas Camlong committed 2026-06-30 17:34:30 +02:00
1 parent aca0f56dfe
commit 6c122c70e4
2 files changed
+5 -3

No files matched your search

@@ -1,3 +1,4 @@
import type { MutableRefObject } from "react";
import { useRef } from "react";
import { Badge, Card } from "@mantine/core";
import { useElementSize } from "@mantine/hooks";
@@ -88,7 +89,7 @@ interface InnerContentProps {
item: SectionItem;
width: number;
height: number;
widgetStateRef: React.MutableRefObject<Record<string, unknown> | null>;
widgetStateRef: MutableRefObject<Record<string, unknown> | null>;
}
const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {
@@ -1,5 +1,6 @@
"use client";
import type { MutableRefObject, ReactNode } from "react";
import { useCallback, useMemo } from "react";
import { Group, Menu, Switch } from "@mantine/core";
import { IconCopy, IconLayoutKanban, IconSettings, IconTrash } from "@tabler/icons-react";
@@ -23,8 +24,8 @@ import { ItemMoveModal } from "./item-move-modal";
interface WidgetContextMenuProps {
item: SectionItem;
widgetStateRef: React.MutableRefObject<Record<string, unknown> | null>;
children: React.ReactNode;
widgetStateRef: MutableRefObject<Record<string, unknown> | null>;
children: ReactNode;
}
export const WidgetContextMenu = ({ item, widgetStateRef, children }: WidgetContextMenuProps) => {