We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2bb398 commit 56481caCopy full SHA for 56481ca
1 file changed
packages/component/src/ActivityStatus/private/Originator.tsx
@@ -25,7 +25,9 @@ const originatorPropsSchema = pipe(
25
26
type OriginatorProps = InferInput<typeof originatorPropsSchema>;
27
28
-const Originator = memo((props: OriginatorProps) => {
+// Regular function is better for React function component.
29
+// eslint-disable-next-line prefer-arrow-callback
30
+const Originator = memo(function Originator(props: OriginatorProps) {
31
const {
32
project: { name, slogan, url }
33
} = validateProps(originatorPropsSchema, props);
@@ -51,7 +53,5 @@ const Originator = memo((props: OriginatorProps) => {
51
53
);
52
54
});
55
-Originator.displayName = 'Originator';
-
56
export default Originator;
57
export { originatorPropsSchema, type OriginatorProps };
0 commit comments