Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Feb 18, 2025
1 parent 8792f2b commit 04bacaf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions frontend/app/src/components/ui/calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"

import * as React from "react"
import { ChevronLeft, ChevronRight } from "lucide-react"
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from 'lucide-react';
import { DayPicker } from "react-day-picker"

import { cn } from "@/lib/utils"
Expand Down Expand Up @@ -54,8 +54,20 @@ function Calendar({
...classNames,
}}
components={{
IconLeft: ({ ...props }) => <ChevronLeft className="h-4 w-4" />,
IconRight: ({ ...props }) => <ChevronRight className="h-4 w-4" />,
Chevron: ({ orientation, ...props }) => {
switch (orientation) {
case 'up':
return <ChevronUp className="h-4 w-4" />
case 'down':
return <ChevronDown className="h-4 w-4" />
case 'left':
return <ChevronLeft className="h-4 w-4" />
case 'right':
return <ChevronRight className="h-4 w-4" />
default:
return <ChevronDown className="h-4 w-4" />
}
},
}}
{...props}
/>
Expand Down

0 comments on commit 04bacaf

Please sign in to comment.