fix: remove unused variables from Svelte components

This commit is contained in:
2026-07-10 11:58:42 +01:00
parent 895d7f0df9
commit eed8814021
30 changed files with 313 additions and 272 deletions
-4
View File
@@ -69,8 +69,6 @@
settings: 'expanded'
});
let _isMobile = $state(false);
// =============== Lifted Data Fetching ===============
// Fetch shared data once at page level to avoid duplicate API calls
let defaultHours = $state<
@@ -96,10 +94,8 @@
if (!browser) return;
const mql = window.matchMedia('(max-width: 767px)');
_isMobile = mql.matches;
function handleChange(e: MediaQueryListEvent) {
_isMobile = e.matches;
for (const key in sectionState) {
sectionState[key as keyof typeof sectionState] = e.matches ? 'collapsed' : 'expanded';
}