Skip to content

Commit

Permalink
Merge pull request #35 from Commencis/feature/icon-props
Browse files Browse the repository at this point in the history
feat: omit width & height from icon props
  • Loading branch information
ymehmetcan authored Nov 11, 2024
2 parents 7d4ed0f + e294ade commit 3dfdb24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-singers-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commencis/starter-react-vite': patch
---

omit width & height from IconProps
2 changes: 1 addition & 1 deletion src/components/ui/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type IconProps = {
name: IconName;
size?: IconSize;
color?: string;
} & Omit<SVGComponentProps, 'fill'>;
} & Omit<SVGComponentProps, 'fill' | 'width' | 'height'>;

export function Icon({
name,
Expand Down

0 comments on commit 3dfdb24

Please sign in to comment.