build error

This commit is contained in:
Ivan Dimitrov 2023-11-16 10:25:04 +02:00
parent 1de7010425
commit 48ddfed5af

View File

@ -87,10 +87,9 @@ export default function Content({ params }: Props) {
return match ? ( return match ? (
<SyntaxHighlighter <SyntaxHighlighter
{...rest} {...rest}
children={getText(children)}
language={match[1]} language={match[1]}
style={codeStyle} style={codeStyle}
/> >{getText(children)}</SyntaxHighlighter>
) : ( ) : (
<code {...rest} className={`${className} text-orange-400 font-black font-mono`}> <code {...rest} className={`${className} text-orange-400 font-black font-mono`}>
{children} {children}