Skip to content

chore: remove unused DialogClose and DialogTrigger exports from dialog component#203

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-dialog-exports-20260621
Open

chore: remove unused DialogClose and DialogTrigger exports from dialog component#203
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-dialog-exports-20260621

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes two unused exports from the dialog.tsx shadcn/ui component:

  • DialogClose — defined as DialogPrimitive.Close but never used internally or imported elsewhere. The close button in DialogContent uses DialogPrimitive.Close directly.
  • DialogTrigger — defined as DialogPrimitive.Trigger but never used internally or imported elsewhere.

This complements PR #179 which removes the similarly unused DialogFooter export.

Verification

  • npm test — 52/52 tests pass
  • npm run build — builds successfully
  • Grep confirms no files import DialogClose or DialogTrigger from anywhere in the codebase

…g 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.
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 21, 2026 10:10am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant