diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index 1105492..aa0436e 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -1,7 +1,7 @@ import { buttonVariants } from "@/components/ui/button" import { cn } from "@/lib/utils" import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" -import * as React from "react" +import { forwardRef, ComponentRef, ComponentPropsWithoutRef, HTMLAttributes } from "react" const AlertDialog = AlertDialogPrimitive.Root @@ -9,9 +9,9 @@ const AlertDialogTrigger = AlertDialogPrimitive.Trigger const AlertDialogPortal = AlertDialogPrimitive.Portal -const AlertDialogOverlay = React.forwardRef< - React.ComponentRef, - React.ComponentPropsWithoutRef +const AlertDialogOverlay = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const AlertDialogContent = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( @@ -42,12 +42,12 @@ const AlertDialogContent = React.forwardRef< )) AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName -const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes) => ( +const AlertDialogHeader = ({ className, ...props }: HTMLAttributes) => (
) AlertDialogHeader.displayName = "AlertDialogHeader" -const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes) => ( +const AlertDialogFooter = ({ className, ...props }: HTMLAttributes) => (
, - React.ComponentPropsWithoutRef +const AlertDialogTitle = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const AlertDialogDescription = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const AlertDialogAction = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName -const AlertDialogCancel = React.forwardRef< - React.ComponentRef, - React.ComponentPropsWithoutRef +const AlertDialogCancel = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const Avatar = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const AvatarImage = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , - React.ComponentPropsWithoutRef +const AvatarFallback = forwardRef< + ComponentRef, + ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + extends HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx index ae14a38..fa3637d 100644 --- a/src/components/ui/breadcrumb.tsx +++ b/src/components/ui/breadcrumb.tsx @@ -1,17 +1,17 @@ import { cn } from "@/lib/utils" import { Slot } from "@radix-ui/react-slot" import { ChevronRight, MoreHorizontal } from "lucide-react" -import * as React from "react" +import { forwardRef, ComponentPropsWithoutRef, ReactNode, ComponentProps } from "react" -const Breadcrumb = React.forwardRef< +const Breadcrumb = forwardRef< HTMLElement, - React.ComponentPropsWithoutRef<"nav"> & { - separator?: React.ReactNode + ComponentPropsWithoutRef<"nav"> & { + separator?: ReactNode } >(({ ...props }, ref) =>