clear code
This commit is contained in:
parent
c7887d2ee8
commit
6aea6c93d3
|
@ -15,17 +15,15 @@ const customStyle = {
|
|||
}
|
||||
const SyntaxHighlighterBox = ({ rows }: SyntaxHighlighterBoxProps) => {
|
||||
return (
|
||||
<YStack>
|
||||
<SyntaxHighlighter
|
||||
language="bash"
|
||||
showLineNumbers={true}
|
||||
lineNumberStyle={{ backgroundColor: '#E7EAEE' }}
|
||||
lineNumberContainerStyle={{color:'black'}}
|
||||
<SyntaxHighlighter
|
||||
language="bash"
|
||||
showLineNumbers={true}
|
||||
lineNumberStyle={{ backgroundColor: '#E7EAEE' }}
|
||||
lineNumberContainerStyle={{ color: 'black' }}
|
||||
customStyle={customStyle}
|
||||
>
|
||||
{`${rows.join('\n')}`}
|
||||
</SyntaxHighlighter>
|
||||
</YStack>
|
||||
>
|
||||
{`${rows.join('\n')}`}
|
||||
</SyntaxHighlighter>
|
||||
)
|
||||
}
|
||||
export default SyntaxHighlighterBox
|
||||
|
|
Loading…
Reference in New Issue