Skip to content

Commit 0b05562

Browse files
committed
fix(ui): fix calendar component for setting schedules
1 parent 96fdfbc commit 0b05562

File tree

4 files changed

+29
-17
lines changed

4 files changed

+29
-17
lines changed

apps/sim/components/ui/calendar.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
4646
...classNames,
4747
}}
4848
components={{
49-
PreviousMonthButton: ({ ...props }) => (
50-
<button {...props}>
51-
<ChevronLeft className={cn('h-4 w-4')} />
52-
</button>
49+
IconLeft: ({ className, ...props }) => (
50+
<ChevronLeft className={cn('h-4 w-4', className)} {...props} />
5351
),
54-
NextMonthButton: ({ ...props }) => (
55-
<button {...props}>
56-
<ChevronRight className={cn('h-4 w-4')} />
57-
</button>
52+
IconRight: ({ className, ...props }) => (
53+
<ChevronRight className={cn('h-4 w-4', className)} {...props} />
5854
),
5955
}}
6056
{...props}

apps/sim/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@radix-ui/react-select": "^2.1.4",
6060
"@radix-ui/react-separator": "^1.1.2",
6161
"@radix-ui/react-slider": "^1.2.2",
62-
"@radix-ui/react-slot": "^1.1.2",
62+
"@radix-ui/react-slot": "^1.2.2",
6363
"@radix-ui/react-switch": "^1.1.2",
6464
"@radix-ui/react-tabs": "^1.1.2",
6565
"@radix-ui/react-toggle": "^1.1.2",
@@ -95,7 +95,7 @@
9595
"postgres": "^3.4.5",
9696
"prismjs": "^1.30.0",
9797
"react": "19.1.0",
98-
"react-day-picker": "^9.4.2",
98+
"react-day-picker": "^8.10.1",
9999
"react-dom": "19.1.0",
100100
"react-google-drive-picker": "^1.2.2",
101101
"react-hook-form": "^7.54.2",

package-lock.json

Lines changed: 21 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react-dom": "19.1.0"
3030
},
3131
"dependencies": {
32-
"@vercel/analytics": "^1.5.0"
32+
"@vercel/analytics": "^1.5.0",
33+
"react-day-picker": "^9.7.0"
3334
}
3435
}

0 commit comments

Comments
 (0)