refactor(#48): Address PR comments

This commit is contained in:
Josh Creek
2026-01-10 21:44:19 +00:00
parent ad8c8a847d
commit 9d14b2d2f1
4 changed files with 63 additions and 20 deletions
+2 -5
View File
@@ -2,13 +2,10 @@
import { theme, applyTheme } from '$lib/stores/theme.js';
import { onMount } from 'svelte';
let currentTheme: 'pokeball' | 'dark';
let currentTheme: 'pokeball' | 'dark' = 'pokeball';
// Subscribe to theme changes
$: if ($theme) {
currentTheme = $theme;
applyTheme($theme);
}
$: (currentTheme = $theme), applyTheme($theme);
onMount(() => {
// Initialize theme from localStorage