File tree Expand file tree Collapse file tree
editor/pages/_development/editor-canvas Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Canvas } from "@code-editor/canvas" ;
3+ import ClientOnly from "components/client-only" ;
34
45export default function EditorCanvasDevPage ( ) {
56 return (
@@ -9,25 +10,27 @@ export default function EditorCanvasDevPage() {
910 height : "100vh" ,
1011 } }
1112 >
12- < Canvas
13- filekey = "unknown"
14- pageid = "1"
15- viewbound = { [
16- 0 ,
17- 0 ,
18- window . innerWidth ||
19- document . documentElement . clientWidth ||
20- document . body . clientWidth ,
21- window . innerHeight ||
22- document . documentElement . clientHeight ||
23- document . body . clientHeight ,
24- ] }
25- selectedNodes = { [ ] }
26- nodes = { [ ] }
27- renderItem = { function ( node ) : React . ReactNode {
28- return < > </ > ;
29- } }
30- />
13+ < ClientOnly >
14+ < Canvas
15+ filekey = "unknown"
16+ pageid = "1"
17+ viewbound = { [
18+ 0 ,
19+ 0 ,
20+ window . innerWidth ||
21+ document . documentElement . clientWidth ||
22+ document . body . clientWidth ,
23+ window . innerHeight ||
24+ document . documentElement . clientHeight ||
25+ document . body . clientHeight ,
26+ ] }
27+ selectedNodes = { [ ] }
28+ nodes = { [ ] }
29+ renderItem = { function ( node ) : React . ReactNode {
30+ return < > </ > ;
31+ } }
32+ />
33+ </ ClientOnly >
3134 </ div >
3235 ) ;
3336}
You can’t perform that action at this time.
0 commit comments