From 79d217207a88c2e4f263eac3c30b4368165dc26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Neves?= Date: Sun, 21 Jun 2026 10:09:49 +0000 Subject: [PATCH] chore: remove unused DialogClose and DialogTrigger exports from dialog component Both DialogClose and DialogTrigger were defined as aliases to @radix-ui/react-dialog primitives but never used internally or imported by any other file in the codebase. DialogContent uses DialogPrimitive.Close directly rather than the DialogClose alias. This complements PR #179 which removes the similarly unused DialogFooter export. --- src/components/ui/dialog.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 11dd612..45f5da7 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -6,12 +6,8 @@ import { cn } from "../../lib/utils" const Dialog = DialogPrimitive.Root -const DialogTrigger = DialogPrimitive.Trigger - const DialogPortal = DialogPrimitive.Portal -const DialogClose = DialogPrimitive.Close - const DialogOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef @@ -110,8 +106,6 @@ export { Dialog, DialogPortal, DialogOverlay, - DialogClose, - DialogTrigger, DialogContent, DialogHeader, DialogFooter,