Skip to content

Commit 2ebae7a

Browse files
committed
fix
1 parent 868c161 commit 2ebae7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/Markdown/MemoizedReactMarkdown.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FC, memo } from 'react';
2-
import ReactMarkdown, { Options } from 'react-markdown';
2+
import ReactMarkdown, {Options} from 'react-markdown';
33

44
const ProcessContent = ({ children }: { children: string }) => {
55
const parts = [];
@@ -65,7 +65,6 @@ const ProcessContent = ({ children }: { children: string }) => {
6565
return <div>{parts}</div>;
6666
};
6767

68-
// eslint-disable-next-line react/display-name
6968
export const MemoizedReactMarkdown: FC<Options> = memo(
7069
({ children, ...props }) => (
7170
<ProcessContent {...props}>
@@ -74,3 +73,5 @@ export const MemoizedReactMarkdown: FC<Options> = memo(
7473
),
7574
(prevProps, nextProps) => prevProps.children === nextProps.children
7675
);
76+
77+
MemoizedReactMarkdown.displayName = 'MemoizedReactMarkdown';

0 commit comments

Comments
 (0)