Fix build errors in formbricks-com (#710)

* Fix build errors in formbricks-com'

* run pnpm format
This commit is contained in:
Matti Nannt
2023-08-18 16:05:12 +02:00
committed by GitHub
parent 944bdc1e8e
commit 6b462504f6
19 changed files with 38 additions and 49 deletions
@@ -1,14 +1,9 @@
import { Fragment } from 'react'
import Highlight, { defaultProps } from 'prism-react-renderer'
import { Fragment } from "react";
import { Highlight } from "prism-react-renderer";
export function Fence({ children, language }) {
return (
<Highlight
{...defaultProps}
code={children.trimEnd()}
language={language}
theme={undefined}
>
<Highlight code={children.trimEnd()} language={language} theme={undefined}>
{({ className, style, tokens, getTokenProps }) => (
<pre className={className} style={style}>
<code>
@@ -19,12 +14,12 @@ export function Fence({ children, language }) {
.map((token, tokenIndex) => (
<span key={tokenIndex} {...getTokenProps({ token })} />
))}
{'\n'}
{"\n"}
</Fragment>
))}
</code>
</pre>
)}
</Highlight>
)
);
}