fix(fs.dev): Children are a bad idea
This commit is contained in:
parent
48d3f0d60a
commit
f4243868d4
1 changed files with 2 additions and 2 deletions
|
@ -22,10 +22,10 @@ const Highlight = (props) => {
|
|||
`}>
|
||||
<span> </span>
|
||||
<span>{names[language] ? names[language] : language}</span>
|
||||
<CopyToClipboard content={children} />
|
||||
<CopyToClipboard content={props.children} />
|
||||
</div>
|
||||
<pre className={`language-${language} hljs text-base lg:text-lg whitespace-pre-wrap break-words`}>
|
||||
{children}
|
||||
{props.children}
|
||||
</pre>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue