clear code

This commit is contained in:
Hristo Nedelkov 2023-08-29 09:37:07 +03:00
parent c7887d2ee8
commit 6aea6c93d3
1 changed files with 8 additions and 10 deletions

View File

@ -15,17 +15,15 @@ const customStyle = {
} }
const SyntaxHighlighterBox = ({ rows }: SyntaxHighlighterBoxProps) => { const SyntaxHighlighterBox = ({ rows }: SyntaxHighlighterBoxProps) => {
return ( return (
<YStack>
<SyntaxHighlighter <SyntaxHighlighter
language="bash" language="bash"
showLineNumbers={true} showLineNumbers={true}
lineNumberStyle={{ backgroundColor: '#E7EAEE' }} lineNumberStyle={{ backgroundColor: '#E7EAEE' }}
lineNumberContainerStyle={{color:'black'}} lineNumberContainerStyle={{ color: 'black' }}
customStyle={customStyle} customStyle={customStyle}
> >
{`${rows.join('\n')}`} {`${rows.join('\n')}`}
</SyntaxHighlighter> </SyntaxHighlighter>
</YStack>
) )
} }
export default SyntaxHighlighterBox export default SyntaxHighlighterBox