You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Extract filterTransientProps utility function
Created a reusable utility function to filter out styled-components
transient props (starting with '$') before spreading to DOM elements.
Changes:
- Created filterTransientProps utility in utils/filterTransientProps.ts
- Replaced all inline filter logic with utility function calls in:
- Topbar/styled.tsx (6 components)
- Toolbar/styled.tsx (PlainButton)
- components/Button.tsx (PlainButton)
Benefits:
- Eliminates code duplication across components
- Centralizes transient prop filtering logic
- Improves maintainability and consistency
Addresses review comment from @RoyEJohnson on PR #2846
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Update styled.tsx
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
0 commit comments