Skip to content

Conversation

@sagar-s-bhedodkar
Copy link

What Changed

  • Converted the Appearance type from a string union to a TypeScript enum.
  • Centralized the theme labels and icons in use-appearance.tsx.
  • Updated AppearanceToggleTab to use the enum and centralized mappings.
  • Removed hardcoded strings in the toggle buttons.

Why

  • Makes theme management type-safe.
  • Reduces duplicate string literals.
  • Prepares the codebase for easier addition of new themes in the future.
  • Improves maintainability and readability.

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