We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c6d2e commit 78ed4eeCopy full SHA for 78ed4ee
src/testUtils/IconComponent.tsx
@@ -2,9 +2,7 @@ import * as React from 'react';
2
3
export const testId = 'iconComponent';
4
5
-export const IconComponent: React.FC<React.SVGProps<SVGSVGElement>> = (
6
- props
7
-) => (
+const IconSvg = (props: React.SVGProps<SVGSVGElement>) => (
8
<svg
9
width="12"
10
height="12"
@@ -15,3 +13,7 @@ export const IconComponent: React.FC<React.SVGProps<SVGSVGElement>> = (
15
13
{...props}
16
14
/>
17
);
+
+export const IconComponent: React.MemoExoticComponent<(
18
+ props: React.SVGProps<SVGSVGElement>
19
+) => JSX.Element> = React.memo(IconSvg);
0 commit comments