mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-11-09 19:35:56 +00:00
refactor(#48): Address PR comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user