fix: replace {__} workaround with clean range() helper in Svelte templates
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
import type { BusinessSettings } from '$lib/types/settings';
|
||||
import { isValidUKPhone, toE164UK, normalisePhoneInput } from '$lib/utils/phone';
|
||||
import { isValidEmail, normalizeEmail } from '$lib/utils/email';
|
||||
import { range } from '$lib/utils/format';
|
||||
|
||||
let settings = $state<BusinessSettings | null>(null);
|
||||
let loading = $state(true);
|
||||
@@ -286,8 +287,7 @@
|
||||
<Card.Content>
|
||||
{#if loading}
|
||||
<div class="space-y-4">
|
||||
{#each Array(3) as __, i (i)}
|
||||
{__}
|
||||
{#each range(3) as i (i)}
|
||||
<div class="space-y-2">
|
||||
<Skeleton class="h-4 w-32" />
|
||||
<Skeleton class="h-5 w-full" />
|
||||
|
||||
Reference in New Issue
Block a user