move table data to the top fix general functionality

This commit is contained in:
1ilit
2023-09-19 15:47:41 +03:00
parent 4447fa2f48
commit 6777abf109
4 changed files with 150 additions and 105 deletions

View File

@@ -9,7 +9,7 @@ import EditorPanel from "../components/editor_panel";
export default function Editor(props) {
const [code, setCode] = useState("");
const [rectangles, setRectangles] = useState([]);
const [tables, setTables] = useState([]);
return (
<>
@@ -18,14 +18,14 @@ export default function Editor(props) {
<div className="flex h-full">
<DndProvider backend={HTML5Backend}>
<EditorPanel
rectangles={rectangles}
setRectangles={setRectangles}
tables={tables}
setTables={setTables}
code={code}
setCode={setCode}
/>
<Canvas
rectangles={rectangles}
setRectangles={setRectangles}
tables={tables}
setTables={setTables}
code={code}
setCode={setCode}
/>