tr]:last:border-b-0',
- className
- )}
- {...props}
- />
-));
-TableFooter.displayName = 'TableFooter';
+function TableRow({ className, ref, ...props }) {
+ return (
+
+ );
+}
-const TableRow = React.forwardRef(({ className, ...props }, ref) => (
-
-));
-TableRow.displayName = 'TableRow';
+function TableHead({ className, ref, ...props }) {
+ return (
+ [role=checkbox]]:translate-y-[2px]',
+ className
+ )}
+ {...props}
+ />
+ );
+}
-const TableHead = React.forwardRef(({ className, ...props }, ref) => (
- | [role=checkbox]]:translate-y-[2px]',
- className
- )}
- {...props}
- />
-));
-TableHead.displayName = 'TableHead';
+function TableCell({ className, ref, ...props }) {
+ return (
+ | [role=checkbox]]:translate-y-[2px]',
+ className
+ )}
+ {...props}
+ />
+ );
+}
-const TableCell = React.forwardRef(({ className, ...props }, ref) => (
- | [role=checkbox]]:translate-y-[2px]',
- className
- )}
- {...props}
- />
-));
-TableCell.displayName = 'TableCell';
-
-const TableCaption = React.forwardRef(({ className, ...props }, ref) => (
-
-));
-TableCaption.displayName = 'TableCaption';
+function TableCaption({ className, ref, ...props }) {
+ return (
+
+ );
+}
export {
Table,
diff --git a/client/components/ui/tabs.jsx b/client/components/ui/tabs.jsx
index fe04f48..9ed0deb 100644
--- a/client/components/ui/tabs.jsx
+++ b/client/components/ui/tabs.jsx
@@ -1,43 +1,45 @@
-import * as React from 'react';
import * as TabsPrimitive from '@radix-ui/react-tabs';
import { cn } from '@/lib/utils';
const Tabs = TabsPrimitive.Root;
-const TabsList = React.forwardRef(({ className, ...props }, ref) => (
-
-));
-TabsList.displayName = TabsPrimitive.List.displayName;
+function TabsList({ className, ref, ...props }) {
+ return (
+
+ );
+}
-const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (
-
-));
-TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
+function TabsTrigger({ className, ref, ...props }) {
+ return (
+
+ );
+}
-const TabsContent = React.forwardRef(({ className, ...props }, ref) => (
-
-));
-TabsContent.displayName = TabsPrimitive.Content.displayName;
+function TabsContent({ className, ref, ...props }) {
+ return (
+
+ );
+}
export { Tabs, TabsList, TabsTrigger, TabsContent };
diff --git a/client/components/ui/theme-toggle.jsx b/client/components/ui/theme-toggle.jsx
index 8109d39..d10d3d6 100644
--- a/client/components/ui/theme-toggle.jsx
+++ b/client/components/ui/theme-toggle.jsx
@@ -1,4 +1,3 @@
-import * as React from 'react';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { Sun, Moon } from 'lucide-react';
import { cn } from '@/lib/utils';
@@ -9,39 +8,41 @@ import { useTheme } from '@/contexts/ThemeContext';
const DropdownMenu = DropdownMenuPrimitive.Root;
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
-const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 6, ...props }, ref) => (
-
-
+
+
+ );
+}
+
+function DropdownMenuItem({ className, inset, ref, ...props }) {
+ return (
+
-
-));
-DropdownMenuContent.displayName = 'DropdownMenuContent';
-
-const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
-
-));
-DropdownMenuItem.displayName = 'DropdownMenuItem';
+ );
+}
/* ── Theme options config ───────────────────────────────────── */
diff --git a/client/components/ui/tooltip.jsx b/client/components/ui/tooltip.jsx
index fa4c2d6..b16c921 100644
--- a/client/components/ui/tooltip.jsx
+++ b/client/components/ui/tooltip.jsx
@@ -1,4 +1,3 @@
-import * as React from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
import { cn } from '@/lib/utils';
@@ -6,19 +5,20 @@ const TooltipProvider = TooltipPrimitive.Provider;
const Tooltip = TooltipPrimitive.Root;
const TooltipTrigger = TooltipPrimitive.Trigger;
-const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
-
-
-
-));
-TooltipContent.displayName = TooltipPrimitive.Content.displayName;
+function TooltipContent({ className, sideOffset = 4, ref, ...props }) {
+ return (
+
+
+
+ );
+}
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|