mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 06:11:13 -05:00
Fix: Type safety and unit validation
This commit is contained in:
@@ -55,17 +55,9 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
|
||||
...classNames,
|
||||
}}
|
||||
components={{
|
||||
// DOCUMENTED EXCEPTION: Radix UI Calendar types require complex casting
|
||||
// The react-day-picker component's internal types don't match the external API
|
||||
// Safe because React validates component props at runtime
|
||||
// See: https://github.com/gpbl/react-day-picker/issues
|
||||
Chevron: ({ orientation, ...props }: any) => {
|
||||
if (orientation === 'left') {
|
||||
return <ChevronLeft className="h-4 w-4" />;
|
||||
}
|
||||
return <ChevronRight className="h-4 w-4" />;
|
||||
},
|
||||
} as any}
|
||||
IconLeft: () => <ChevronLeft className="h-4 w-4" />,
|
||||
IconRight: () => <ChevronRight className="h-4 w-4" />,
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user