1
0
Fork 0

feat(shared): PanZoomPattern component

This commit is contained in:
joostdecock 2023-06-01 20:18:37 +02:00
parent b829883674
commit eef8d68781
7 changed files with 71 additions and 152 deletions

View file

@ -1,4 +1,4 @@
import { Pattern as ReactPattern } from 'pkgs/react-components/src/pattern/index.mjs'
import { PanZoomPattern as ReactPattern } from 'shared/components/workbench/pan-zoom-pattern.mjs'
import { DraftMenu, ns as menuNs } from './menu.mjs'
export const ns = menuNs
@ -25,9 +25,6 @@ export const DraftView = ({
}
} else output = <ReactPattern renderProps={pattern.getRenderProps()} />
console.log(pattern.getRenderProps())
return <pre>{JSON.stringify(pattern.getRenderProps(), null, 2)}</pre>
return (
<div className="flex flex-row">
<div className="w-2/3 shrink-0 grow lg:p-4 sticky top-0">