fix: remove unused variables from Svelte components
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user