From 6f3b001804002338ddc5d1748a0e4e97e5509c6d Mon Sep 17 00:00:00 2001 From: Hanzo Dev Date: Tue, 16 Sep 2025 18:15:55 -0500 Subject: [PATCH] fix: resolve component type errors - Fixed duplicate icon properties in layout.tsx - Updated Calendar components to use Chevron instead of IconLeft/IconRight - Fixed react-day-picker v9 breaking changes --- app/app/layout.tsx | 2 -- app/registry/default/ui/calendar.tsx | 8 ++++++-- app/registry/new-york/ui/calendar.tsx | 8 ++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/app/layout.tsx b/app/app/layout.tsx index 302f0af88ab..de7070bb356 100644 --- a/app/app/layout.tsx +++ b/app/app/layout.tsx @@ -60,8 +60,6 @@ export const metadata: Metadata = { icon: "/zoo-logo.png", shortcut: "/zoo-logo.png", apple: "/zoo-logo.png", - shortcut: "/favicon-16x16.png", - apple: "/apple-touch-icon.png", }, manifest: `${siteConfig.url}/site.webmanifest`, } diff --git a/app/registry/default/ui/calendar.tsx b/app/registry/default/ui/calendar.tsx index e04fe19511f..536580bb3ce 100644 --- a/app/registry/default/ui/calendar.tsx +++ b/app/registry/default/ui/calendar.tsx @@ -54,8 +54,12 @@ function Calendar({ ...classNames, }} components={{ - IconLeft: ({ ...props }) => , - IconRight: ({ ...props }) => , + Chevron: ({ orientation }) => + orientation === "left" ? ( + + ) : ( + + ), }} {...props} /> diff --git a/app/registry/new-york/ui/calendar.tsx b/app/registry/new-york/ui/calendar.tsx index 85571a1ca01..589cd9db763 100644 --- a/app/registry/new-york/ui/calendar.tsx +++ b/app/registry/new-york/ui/calendar.tsx @@ -60,8 +60,12 @@ function Calendar({ ...classNames, }} components={{ - IconLeft: ({ ...props }) => , - IconRight: ({ ...props }) => , + Chevron: ({ orientation }) => + orientation === "left" ? ( + + ) : ( + + ), }} {...props} />