1
0
Fork 0

fix(org): build issues for nextjs

This commit is contained in:
joostdecock 2023-05-19 11:46:17 +02:00
parent a6f32e155c
commit d77cf38637
7 changed files with 46 additions and 9 deletions

View file

@ -22,7 +22,14 @@ export const asText = (reactEl) => {
}
// The actual example
const Example = ({ patternProps, tutorial, paperless, settings, showInfo, xray = false }) => {
export const Example = ({
patternProps,
tutorial,
paperless,
settings,
showInfo,
xray = false,
}) => {
const [ui, setUi] = useState({ renderer: 'react', xray: { enabled: xray } })
if (patternProps.logs.pattern.error.length > 0 || patternProps.logs.sets[0].error.length > 0)