File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { FC , memo } from 'react' ;
2- import ReactMarkdown , { Options } from 'react-markdown' ;
2+ import ReactMarkdown , { Options } from 'react-markdown' ;
33
44const 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
6968export 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' ;
You can’t perform that action at this time.
0 commit comments