Updated forms

This commit is contained in:
2025-06-27 23:19:38 +02:00
parent 1d5dd15d49
commit e69d2aea71
4 changed files with 37 additions and 32 deletions

View File

@@ -12,15 +12,11 @@ import { cn } from "@/lib/utils"
interface DatePickerProps {
value?: Date
onChange?: (date: Date | undefined) => void
disabled?: boolean
className?: string
}
export function DatePicker({
value,
onChange,
disabled = false,
className
onChange
}: DatePickerProps) {
return (
<Popover>
@@ -29,10 +25,8 @@ export function DatePicker({
variant="outline"
className={cn(
"w-full justify-start text-left font-normal",
!value && "text-muted-foreground",
className
!value && "text-muted-foreground"
)}
disabled={disabled}
>
<CalendarIcon className="mr-2 h-4 w-4" />
{value ? format(value, "PPP") : <span>Pick a date</span>}