fix: replace {__} workaround with clean range() helper in Svelte templates
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import { CalendarDate } from '@internationalized/date';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { sanitizeText } from '$lib/utils/toast-safe';
|
||||
import { formatDuration } from '$lib/utils/format';
|
||||
import { formatDuration, range } from '$lib/utils/format';
|
||||
import { formatUserName } from '$lib/utils/nameDisplay';
|
||||
import { formatLocalDateTime, parseWallClockDate } from '$lib/utils/timeSlots';
|
||||
|
||||
@@ -552,8 +552,7 @@
|
||||
<Card.Content class="space-y-4">
|
||||
{#if loading}
|
||||
<div class="space-y-3">
|
||||
{#each Array(3) as __, i (i)}
|
||||
{__}
|
||||
{#each range(3) as i (i)}
|
||||
<Skeleton class="h-16 w-full" />
|
||||
{/each}
|
||||
</div>
|
||||
@@ -666,8 +665,7 @@
|
||||
>
|
||||
Prev
|
||||
</Button>
|
||||
{#each Array(totalPages) as __, i (i)}
|
||||
{__}
|
||||
{#each range(totalPages) as i (i)}
|
||||
<Button
|
||||
variant={currentPage === i + 1 ? 'default' : 'outline'}
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user