Skip to content

refactor(ui): remove unused DropdownMenu subcomponent exports#201

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-dropdown-exports-20260620
Open

refactor(ui): remove unused DropdownMenu subcomponent exports#201
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-unused-dropdown-exports-20260620

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes 9 unused subcomponent exports from the DropdownMenu component. These subcomponents are defined and exported but never imported by any code in the project.

Removed subcomponents

Subcomponent Type Reason
DropdownMenuGroup Simple alias Unused
DropdownMenuPortal Simple alias Unused (code uses DropdownMenuPrimitive.Portal directly)
DropdownMenuSub Simple alias Unused
DropdownMenuRadioGroup Simple alias Unused
DropdownMenuSubTrigger Full component Unused sub-menu trigger
DropdownMenuSubContent Full component Unused sub-menu content
DropdownMenuCheckboxItem Full component Unused checkbox item
DropdownMenuRadioItem Full component Unused radio item
DropdownMenuShortcut Full component Unused keyboard shortcut display

Also removes the now-unused Check, ChevronRight, and Circle icon imports from lucide-react.

Why

Changes

  • src/components/ui/dropdown-menu.tsx: Removed 9 unused subcomponent definitions and their export entries; cleaned up unused lucide-react icon imports

Test Plan

  • All 52 existing tests pass
  • Production build completes successfully
  • No behavior change — these exports were never imported externally
  • Header component's dropdown menu verified to use only the retained exports (DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator)

Removes 9 unused subcomponents that are defined and exported but never
imported by any code in the project:

- DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub,
  DropdownMenuRadioGroup (simple aliases)
- DropdownMenuSubTrigger, DropdownMenuSubContent (nested menu)
- DropdownMenuCheckboxItem, DropdownMenuRadioItem (form items)
- DropdownMenuShortcut (keyboard shortcut display)

Also removes the now-unused Check, ChevronRight, and Circle icon imports
from lucide-react.

Follows the same pattern as PR #179 (DialogFooter removal) and
PR #200 (SheetPortal/SheetOverlay export cleanup).
@vercel

vercel Bot commented Jun 20, 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 20, 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