corregido errores de compilacion para next en web
This commit is contained in:
@@ -5,7 +5,7 @@ import { DayPicker } from "react-day-picker"
|
||||
|
||||
import { cn } from "@repo/shadcn/lib/utils"
|
||||
import { buttonVariants } from "@repo/shadcn/components/ui/button"
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons" // Asegúrate de que esto está bien importado
|
||||
|
||||
function Calendar({
|
||||
className,
|
||||
@@ -60,11 +60,17 @@ function Calendar({
|
||||
...classNames,
|
||||
}}
|
||||
components={{
|
||||
IconLeft: ({ className, ...props }) => (
|
||||
<ChevronLeftIcon className={cn("size-4", className)} {...props} />
|
||||
IconLeft: ({ className, children, style, ...propsFromDayPicker }) => ( // <--- CAMBIO AQUÍ
|
||||
<ChevronLeftIcon
|
||||
className={cn("size-4", className)}
|
||||
{...propsFromDayPicker}
|
||||
/>
|
||||
),
|
||||
IconRight: ({ className, ...props }) => (
|
||||
<ChevronRightIcon className={cn("size-4", className)} {...props} />
|
||||
IconRight: ({ className, children, style, ...propsFromDayPicker }) => ( // <--- CAMBIO AQUÍ
|
||||
<ChevronRightIcon
|
||||
className={cn("size-4", className)}
|
||||
{...propsFromDayPicker}
|
||||
/>
|
||||
),
|
||||
}}
|
||||
{...props}
|
||||
@@ -72,4 +78,4 @@ function Calendar({
|
||||
)
|
||||
}
|
||||
|
||||
export { Calendar }
|
||||
export { Calendar }
|
||||
Reference in New Issue
Block a user