Updated calendar picker

This commit is contained in:
2025-06-28 00:03:52 +02:00
parent e69d2aea71
commit 0088b8f02a
3 changed files with 8 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover
import { cn } from "@/lib/utils"
interface DatePickerProps {
value?: Date
value?: Date | null
onChange?: (date: Date | undefined) => void
}
@@ -35,8 +35,9 @@ export function DatePicker({
<PopoverContent className="w-auto p-0" align="start">
<Calendar
mode="single"
selected={value}
selected={value ?? undefined}
onSelect={onChange}
weekStartsOn={1}
/>
</PopoverContent>
</Popover>