Skip to content

Commit

Permalink
fix ts again
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekAgility committed Dec 17, 2024
1 parent 8069417 commit 98b80b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stories/atoms/icons/TablerIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const TablerIcon: React.FC<ITablerIconProps> = ({
icon,
className = "w-6 h-6 text-gray-600"
}: ITablerIconProps): JSX.Element => {
const Icon = TablerIcons[icon];
const Icon = TablerIcons[icon as keyof typeof TablerIcons];
return (
<i>
<Icon className={className} />

Check failure on line 18 in stories/atoms/icons/TablerIcon.tsx

View workflow job for this annotation

GitHub Actions / test

Type '{ className: string; }' is not assignable to type 'string'.

Check failure on line 18 in stories/atoms/icons/TablerIcon.tsx

View workflow job for this annotation

GitHub Actions / test

'Icon' cannot be used as a JSX component.

Check failure on line 18 in stories/atoms/icons/TablerIcon.tsx

View workflow job for this annotation

GitHub Actions / type-check

Type '{ className: string; }' is not assignable to type 'string'.

Check failure on line 18 in stories/atoms/icons/TablerIcon.tsx

View workflow job for this annotation

GitHub Actions / type-check

'Icon' cannot be used as a JSX component.
Expand Down

0 comments on commit 98b80b6

Please sign in to comment.