Skip to content

Commit

Permalink
fix(docs-react): fix eslint errors in MarkdownDescription
Browse files Browse the repository at this point in the history
Replace children prop with nested content in SyntaxHighlighter
  • Loading branch information
BelfordZ committed Nov 29, 2024
1 parent 8af04df commit 6cff5a6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ const MarkdownDescription: React.FC<IProps> = ({ source, className, uiSchema })
return <SyntaxHighlighter
style={uiSchema && uiSchema.appBar && uiSchema.appBar["ui:darkMode"] ? materialDark : materialLight}
language={language}
children={value}
/>;
>
{value}
</SyntaxHighlighter>;
},
}}
source={source}
Expand Down

0 comments on commit 6cff5a6

Please sign in to comment.