Skip to content

Commit

Permalink
refactor(icons): Add type to IconProps
Browse files Browse the repository at this point in the history
  • Loading branch information
zainfathoni committed Aug 6, 2023
1 parent ed1687b commit 17b71c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import * as React from 'react'

export function Duotone({ id, ...props }) {
type IconProps = React.SVGProps<SVGSVGElement> & { id: string }

export function Duotone({ id, ...props }: IconProps) {
return (
<svg {...props}>
<use href={`/images/duotone.svg#${id}`} />
</svg>
)
}

export function Light({ id, ...props }) {
export function Light({ id, ...props }: IconProps) {
return (
<svg {...props}>
<use href={`/images/light.svg#${id}`} />
</svg>
)
}

export function Solid({ id, ...props }) {
export function Solid({ id, ...props }: IconProps) {
return (
<svg {...props}>
<use href={`/images/solid.svg#${id}`} />
Expand Down

0 comments on commit 17b71c7

Please sign in to comment.