fix: replace {__} workaround with clean range() helper in Svelte templates
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import { apiFetch } from '$lib/utils/api';
|
||||
import { Skeleton } from '$lib/components/ui/skeleton';
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
import { range } from '$lib/utils/format';
|
||||
import { Checkbox } from '$lib/components/ui/checkbox';
|
||||
import ApprovalModal from '$lib/components/admin/ApprovalModal.svelte';
|
||||
import BookingModal from '$lib/components/admin/BookingModal.svelte';
|
||||
@@ -367,8 +368,7 @@
|
||||
{#if pageState === 'loading'}
|
||||
<div class="mx-auto max-w-3xl space-y-4 p-6 pt-24">
|
||||
<Skeleton class="h-8 w-48" />
|
||||
{#each Array(5) as __, i (i)}
|
||||
{__}
|
||||
{#each range(5) as i (i)}
|
||||
<Skeleton class="h-24 w-full" />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user