mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
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:
1 parent
86fa57d8bf
commit
41a7f4daea
4 files changed
+90
-33
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user