From 84065e5530097509b40dbc31ca8b055ed29d0a41 Mon Sep 17 00:00:00 2001 From: Anchel135 Date: Mon, 5 Aug 2024 15:39:36 +0300 Subject: [PATCH] fix build --- app/create/page.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/create/page.tsx b/app/create/page.tsx index b0a4e6a..44fb189 100644 --- a/app/create/page.tsx +++ b/app/create/page.tsx @@ -7,10 +7,8 @@ import { Progress } from "@/components/ui/progress"; import useSWR from "swr"; import { Toast, prepareArg, securedFetch } from "@/lib/utils"; import Header from "../components/Header"; -import { Graph } from "../api/graph/model"; import Input from "../components/ui/Input"; import Button from "../components/ui/Button"; -import SchemaView from "../schema/SchemaView"; import Dropzone from "../components/ui/Dropzone"; type CurrentTab = "loadSchema" | "schema" | "graph" @@ -18,7 +16,7 @@ type CurrentTab = "loadSchema" | "schema" | "graph" export default function Create() { const [currentTab, setCurrentTab] = useState() - const [schema, setSchema] = useState(Graph.empty()) + // const [schema, setSchema] = useState(Graph.empty()) const [ID, setID] = useState() const [files, setFiles] = useState([]) const [filesPath, setFilesPath] = useState() @@ -57,7 +55,7 @@ export default function Create() { } setProgress(0) - setSchema(Graph.create(`${graphName}_schema`, j.result)) + // setSchema(Graph.create(`${graphName}_schema`, j.result)) setCurrentTab("schema") } run() @@ -194,7 +192,7 @@ export default function Create() { case "schema": return (
- + {/* */}