mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-05 23:15:58 -06:00
refactor: simplify ThemeToggle with config-driven approach
Replace imperative theme toggling logic with declarative THEME_CONFIG object for cleaner, more maintainable code. Add type safety with Theme type and isTheme type guard.
This commit is contained in:
@@ -17,6 +17,8 @@ export default [
|
||||
// Base configuration with ignores
|
||||
{
|
||||
ignores: [
|
||||
".media/**",
|
||||
"coverage/**",
|
||||
".next/**",
|
||||
"node_modules/**",
|
||||
"out/**",
|
||||
|
||||
Reference in New Issue
Block a user