Skip to content

Commit 56481ca

Browse files
committed
Use regular function
1 parent f2bb398 commit 56481ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/component/src/ActivityStatus/private/Originator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const originatorPropsSchema = pipe(
2525

2626
type OriginatorProps = InferInput<typeof originatorPropsSchema>;
2727

28-
const Originator = memo((props: OriginatorProps) => {
28+
// Regular function is better for React function component.
29+
// eslint-disable-next-line prefer-arrow-callback
30+
const Originator = memo(function Originator(props: OriginatorProps) {
2931
const {
3032
project: { name, slogan, url }
3133
} = validateProps(originatorPropsSchema, props);
@@ -51,7 +53,5 @@ const Originator = memo((props: OriginatorProps) => {
5153
);
5254
});
5355

54-
Originator.displayName = 'Originator';
55-
5656
export default Originator;
5757
export { originatorPropsSchema, type OriginatorProps };

0 commit comments

Comments
 (0)