Skip to content

Commit 08349f5

Browse files
committed
chore: update react-date-picker
1 parent 8b84790 commit 08349f5

File tree

4 files changed

+32
-12
lines changed

4 files changed

+32
-12
lines changed

package-lock.json

Lines changed: 25 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"lucide-react": "^0.479.0",
4747
"next-themes": "^0.4.6",
4848
"react": "^19.0.0",
49-
"react-day-picker": "^8.10.1",
49+
"react-day-picker": "^9.6.2",
5050
"react-dom": "^19.0.0",
5151
"react-hook-form": "^7.54.2",
5252
"react-router": "^7.3.0",

src/components/nav/NavMain.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function NavMain({
2121
url: string
2222
icon?: LucideIcon
2323
isActive?: boolean
24+
disabled?: boolean
2425
items?: {
2526
title: string
2627
url: string
@@ -36,7 +37,7 @@ export function NavMain({
3637
{items.map((item) =>
3738
(item.items ?? []).length === 0 || state === "collapsed" ? (
3839
<SidebarMenuItem key={item.title}>
39-
<SidebarMenuButton asChild tooltip={item.title}>
40+
<SidebarMenuButton asChild tooltip={item.title} disabled={item.disabled}>
4041
<NavLink to={item.url}>
4142
{item.icon && <item.icon />}
4243
<span>{item.title}</span>

src/components/ui/calendar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ function Calendar({
5858
...classNames,
5959
}}
6060
components={{
61-
IconLeft: ({ className, ...props }) => (
62-
<ChevronLeft className={cn("size-4", className)} {...props} />
61+
PreviousMonthButton: ({ className }) => (
62+
<ChevronLeft className={cn("size-4", className)} />
6363
),
64-
IconRight: ({ className, ...props }) => (
65-
<ChevronRight className={cn("size-4", className)} {...props} />
64+
NextMonthButton: ({ className }) => (
65+
<ChevronRight className={cn("size-4", className)} />
6666
),
6767
}}
6868
{...props}

0 commit comments

Comments
 (0)