Skip to content

chore: remove unused SheetFooter and SheetClose exports from sheet component - #176

Merged
andrerfneves merged 1 commit into
mainfrom
maintenance/remove-unused-sheet-exports-20260611
Jun 12, 2026
Merged

andrerfneves merged 1 commit into
mainfrom
maintenance/remove-unused-sheet-exports-20260611

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes the unused SheetFooter and SheetClose exports from the sheet UI component. Both were defined and exported but never imported or used anywhere in the codebase.

Problem

  • SheetClose was an alias (const SheetClose = SheetPrimitive.Close) that was never imported by any file
  • SheetFooter was a forwarded-ref layout component that was never imported by any file
  • The header and invoice-details components import Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger — none of them use SheetClose or SheetFooter
  • The close button in SheetContent already uses SheetPrimitive.Close directly (not the re-exported SheetClose)

Changes

  • Remove const SheetClose = SheetPrimitive.Close
  • Remove SheetFooter component definition and its displayName assignment
  • Remove both from the export list

Verification

  • All 52 tests pass
  • npm run build succeeds
  • Neither SheetClose nor SheetFooter is referenced anywhere else in the codebase
  • No behavioral changes — the Sheet component family continues to function identically

…mponent

SheetFooter and SheetClose were defined and exported but never imported
or used anywhere in the codebase. Removing them cleans up dead code with
no behavioral impact.
@vercel

vercel Bot commented Jun 11, 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 11, 2026 6:05pm

@andrerfneves
andrerfneves merged commit 44ea22a into main Jun 12, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — b0447b79 Deployed Jun 11, 2026 by vercel[bot]
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