style: fix require-each-key — add missing keys to all {#each} blocks
This commit is contained in:
@@ -663,7 +663,7 @@
|
||||
{#if booking.discounts && booking.discounts.length > 0}
|
||||
<div class="mt-3 rounded-md border border-blue-200 bg-blue-50 p-3 text-sm text-blue-800">
|
||||
<p class="font-medium">Applied Discounts</p>
|
||||
{#each booking.discounts as d}
|
||||
{#each booking.discounts as d (d.id)}
|
||||
<p class="mt-1">
|
||||
- {d.discount_source === 'loyalty'
|
||||
? 'Loyalty Stamp Card'
|
||||
|
||||
@@ -575,7 +575,7 @@
|
||||
<div
|
||||
class="my-2 space-y-1 rounded-md border-y border-fuchsia-100 bg-fuchsia-50/20 px-2 py-2"
|
||||
>
|
||||
{#each selectedBooking.discounts as d}
|
||||
{#each selectedBooking.discounts as d (d.id)}
|
||||
<div class="flex items-center justify-between text-xs text-fuchsia-800">
|
||||
<span class="flex items-center gap-1.5">
|
||||
<span class="h-1.5 w-1.5 rounded-full bg-fuchsia-400"></span>
|
||||
|
||||
@@ -628,7 +628,7 @@
|
||||
onchange={() => validateField('voucher_type')}
|
||||
>
|
||||
<option value="" disabled>Select voucher type</option>
|
||||
{#each VOUCHER_TYPES as vt}
|
||||
{#each VOUCHER_TYPES as vt (vt.value)}
|
||||
<option value={vt.value}>{vt.label}</option>
|
||||
{/each}
|
||||
</select>
|
||||
|
||||
@@ -561,7 +561,7 @@
|
||||
disabled={!row.is_open}
|
||||
class="w-24 text-sm"
|
||||
>
|
||||
{#each Array(24) as _, hour}
|
||||
{#each Array(24) as _, hour (hour)}
|
||||
{#each TIME15 as min (min)}
|
||||
<option value="{String(hour).padStart(2, '0')}:{min}"
|
||||
>{String(hour).padStart(2, '0')}:{min}</option
|
||||
@@ -572,7 +572,7 @@
|
||||
</td>
|
||||
<td class="py-2">
|
||||
<select bind:value={row.end_time} disabled={!row.is_open} class="w-24 text-sm">
|
||||
{#each Array(24) as _, hour}
|
||||
{#each Array(24) as _, hour (hour)}
|
||||
{#each TIME15 as min (min)}
|
||||
<option value="{String(hour).padStart(2, '0')}:{min}"
|
||||
>{String(hour).padStart(2, '0')}:{min}</option
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
disabled={!row.is_open}
|
||||
class="max-w-[70px] text-sm"
|
||||
>
|
||||
{#each Array(24) as _, hour}
|
||||
{#each Array(24) as _, hour (hour)}
|
||||
{#each TIME15 as min (min)}
|
||||
<option value="{String(hour).padStart(2, '0')}:{min}"
|
||||
>{String(hour).padStart(2, '0')}:{min}</option
|
||||
@@ -500,7 +500,7 @@
|
||||
disabled={!row.is_open}
|
||||
class="max-w-[70px] text-sm"
|
||||
>
|
||||
{#each Array(24) as _, hour}
|
||||
{#each Array(24) as _, hour (hour)}
|
||||
{#each TIME15 as min (min)}
|
||||
<option value="{String(hour).padStart(2, '0')}:{min}"
|
||||
>{String(hour).padStart(2, '0')}:{min}</option
|
||||
|
||||
Reference in New Issue
Block a user