Skip to content

Commit 78ed4ee

Browse files
committed
feat: Update icon typings in tests
1 parent 74c6d2e commit 78ed4ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/testUtils/IconComponent.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import * as React from 'react';
22

33
export const testId = 'iconComponent';
44

5-
export const IconComponent: React.FC<React.SVGProps<SVGSVGElement>> = (
6-
props
7-
) => (
5+
const IconSvg = (props: React.SVGProps<SVGSVGElement>) => (
86
<svg
97
width="12"
108
height="12"
@@ -15,3 +13,7 @@ export const IconComponent: React.FC<React.SVGProps<SVGSVGElement>> = (
1513
{...props}
1614
/>
1715
);
16+
17+
export const IconComponent: React.MemoExoticComponent<(
18+
props: React.SVGProps<SVGSVGElement>
19+
) => JSX.Element> = React.memo(IconSvg);

0 commit comments

Comments
 (0)