Refactor: Implement app-wide DatePicker enhancements

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 16:42:10 +00:00
parent b327cefd1c
commit f6a06ad2fa
7 changed files with 459 additions and 65 deletions

View File

@@ -152,9 +152,13 @@ export function ReviewForm({
<DatePicker
date={watch('visit_date') ? new Date(watch('visit_date')) : undefined}
onSelect={(date) => setValue('visit_date', date ? date.toISOString().split('T')[0] : '')}
placeholder="Select visit date"
placeholder="When did you visit?"
disableFuture={true}
fromYear={1950}
/>
<p className="text-xs text-muted-foreground">
Select the date of your visit to help others understand when this experience occurred.
</p>
</div>
{/* Wait Time (for rides) */}