mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 02:31:13 -05:00
Refactor: Update shadcn calendar component
This commit is contained in:
@@ -61,9 +61,7 @@ export function DatePicker({
|
||||
disabled={disabled}
|
||||
>
|
||||
<CalendarIcon className="mr-2 h-4 w-4" />
|
||||
<span className="truncate">
|
||||
{date ? format(date, "PPP") : placeholder}
|
||||
</span>
|
||||
{date ? format(date, "PPP") : <span>{placeholder}</span>}
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-auto p-0" align="start">
|
||||
@@ -73,7 +71,7 @@ export function DatePicker({
|
||||
onSelect={handleSelect}
|
||||
disabled={getDisabledDates}
|
||||
initialFocus
|
||||
className="p-3 pointer-events-auto"
|
||||
captionLayout="dropdown-buttons"
|
||||
fromYear={fromYear}
|
||||
toYear={toYear}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user