Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit f38e452

Browse files
committed
fix(Icon): Pass props to svg
1 parent fd5a40b commit f38e452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/createSVGIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const Svg = styled.svg<IconProps>`
1616
`;
1717

1818
export default (renderSvg: () => React.ReactNode, viewBox = '0 0 512 512') => {
19-
return ({}: IconProps) => {
19+
return (props: IconProps) => {
2020
return (
21-
<Svg xmlns="http://www.w3.org/2000/svg" viewBox={viewBox}>
21+
<Svg xmlns="http://www.w3.org/2000/svg" viewBox={viewBox} {...props}>
2222
${renderSvg()}
2323
</Svg>
2424
);

0 commit comments

Comments
 (0)