fix: replace {__} workaround with clean range() helper in Svelte templates

This commit is contained in:
2026-07-11 12:50:13 +01:00
parent d172adf392
commit 294d844493
21 changed files with 71 additions and 71 deletions
@@ -5,6 +5,7 @@
import { CalendarDate, getLocalTimeZone, type DateValue } from '@internationalized/date';
import { isValidUKPhone, toE164UK } from '$lib/utils/phone';
import { formatUserName } from '$lib/utils/nameDisplay';
import { range } from '$lib/utils/format';
// UI Components
import * as Modal from '$lib/components/ui/dialog';
@@ -1145,10 +1146,8 @@
<div class="max-h-[300px] overflow-y-auto rounded-md border border-gray-200">
{#if loadingUsers}
<div class="space-y-2 p-2">
{#each Array(3) as __, i (i)}
{__}
{#each range(3) as i (i)}
<Skeleton class="h-10 w-full" />
{__}
{/each}
</div>
{:else if users.length === 0}
@@ -1259,10 +1258,8 @@
<Card.Content class="space-y-4">
{#if loadingServices}
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
{#each Array(4) as __, i (i)}
{__}
{#each range(4) as i (i)}
<Skeleton class="h-28 w-full" />
{__}
{/each}
</div>
{:else if services.length === 0}
@@ -1294,10 +1291,8 @@
</div>
{#if loadingCustomServices}
<div class="space-y-2">
{#each Array(3) as __, i (i)}
{__}
{#each range(3) as i (i)}
<Skeleton class="h-10 w-full" />
{__}
{/each}
</div>
{:else if customServices.length > 0}