perf(ui): load the date field's calendar when it first opens

react-day-picker and the seven date-fns locales rode the first load of
every page with a date field, the dashboard and the settings sections
among them. The calendar now lives in its own module that the popover
loads on first open; the locale map moves beside it.
This commit is contained in:
Marc-André Bombeck committed 2026-10-09 18:22:10 +02:00
1 parent 86fa57d8bf
commit 41a7f4daea
4 files changed
+90 -33

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { useRef, useState } from "react";
import { Button } from "@/components/ui/button";
import { Calendar, CalendarDayButton } from "@/components/ui/calendar";
import { ResponsiveSheet } from "@/components/ui/responsive-sheet";
import { resolveDateFnsLocale } from "@/components/ui/date-field";
import { resolveDateFnsLocale } from "@/components/ui/calendar-locale";
import {
Popover,
PopoverContent,