fix: daterangepicker key

This commit is contained in:
trev 2025-03-19 02:20:39 -04:00
parent d2238bdf9b
commit 8b494430a5

View File

@ -122,11 +122,11 @@
</DateRangePicker.NextButton> </DateRangePicker.NextButton>
</DateRangePicker.Header> </DateRangePicker.Header>
<div class="flex flex-col space-y-4 pt-4 sm:flex-row sm:space-y-0 sm:space-x-4"> <div class="flex flex-col space-y-4 pt-4 sm:flex-row sm:space-y-0 sm:space-x-4">
{#each months as month (month.value)} {#each months as month, i (i)}
<DateRangePicker.Grid class="w-full border-collapse space-y-1 select-none"> <DateRangePicker.Grid class="w-full border-collapse space-y-1 select-none">
<DateRangePicker.GridHead> <DateRangePicker.GridHead>
<DateRangePicker.GridRow class="mb-1 flex w-full justify-between"> <DateRangePicker.GridRow class="mb-1 flex w-full justify-between">
{#each weekdays as day (day)} {#each weekdays as day, i (i)}
<DateRangePicker.HeadCell <DateRangePicker.HeadCell
class="text-overlay-0 w-10 rounded text-xs font-normal!" class="text-overlay-0 w-10 rounded text-xs font-normal!"
> >
@ -136,9 +136,9 @@
</DateRangePicker.GridRow> </DateRangePicker.GridRow>
</DateRangePicker.GridHead> </DateRangePicker.GridHead>
<DateRangePicker.GridBody> <DateRangePicker.GridBody>
{#each month.weeks as weekDates (weekDates)} {#each month.weeks as weekDates, i (i)}
<DateRangePicker.GridRow class="flex w-full"> <DateRangePicker.GridRow class="flex w-full">
{#each weekDates as date (date)} {#each weekDates as date, i (i)}
<DateRangePicker.Cell <DateRangePicker.Cell
{date} {date}
month={month.value} month={month.value}