Skip to content

Commit

Permalink
refactor(icon): drop prop class getter
Browse files Browse the repository at this point in the history
The prop is reactive anyway
  • Loading branch information
khmm12 committed Sep 23, 2024
1 parent 6ffe3ee commit 8a569f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function iconProps(props: IconProps): JSX.SvgSVGAttributes<SVGSVGElement> {
const [sProps, rest] = splitProps(props, ['css', 'class'])
return mergeProps(rest, {
xmlns: 'http://www.w3.org/2000/svg',
get class() {
return cx(css(iconStyles, sProps.css), sProps.class)
},
class: cx(css(iconStyles, sProps.css), sProps.class),
})
}

0 comments on commit 8a569f4

Please sign in to comment.