Skip to content

Commit

Permalink
refactor: simplify icon components in Calendar and clean up imports i…
Browse files Browse the repository at this point in the history
…n Chart
  • Loading branch information
rhochmayr committed Oct 25, 2024
1 parent c66e6f8 commit 1326d73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function Calendar({
...classNames,
}}
components={{
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />,
IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: () => <ChevronRightIcon className="h-4 w-4" />,
}}
{...props}
/>
Expand Down
6 changes: 0 additions & 6 deletions src/components/ui/chart.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import * as React from 'react';
import * as RechartsPrimitive from 'recharts';
import {
NameType,
Payload,
ValueType,
} from 'recharts/types/component/DefaultTooltipContent';

import { cn } from '@/lib/utils';

// Format: { THEME_NAME: CSS_SELECTOR }
Expand Down

0 comments on commit 1326d73

Please sign in to comment.