Fix build error.

This commit is contained in:
2024-05-11 23:05:45 +02:00
parent 0047099742
commit e9b67efd46
+2 -3
View File
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import * as React from "react" import * as React from "react"
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons" import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
import { DayPicker } from "react-day-picker" import { DayPicker } from "react-day-picker"
@@ -59,8 +58,8 @@ function Calendar({
...classNames, ...classNames,
}} }}
components={{ components={{
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />, IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />, IconRight: () => <ChevronRightIcon className="h-4 w-4" />,
}} }}
{...props} {...props}
/> />