Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Anchel123 committed Aug 5, 2024
1 parent c1b41c9 commit 84065e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ 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"

export default function Create() {

const [currentTab, setCurrentTab] = useState<CurrentTab | null>()
const [schema, setSchema] = useState<Graph>(Graph.empty())
// const [schema, setSchema] = useState<Graph>(Graph.empty())
const [ID, setID] = useState()
const [files, setFiles] = useState<File[]>([])
const [filesPath, setFilesPath] = useState<string[]>()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -194,7 +192,7 @@ export default function Create() {
case "schema":
return (
<div className="grow flex flex-col gap-10">
<SchemaView schema={schema} setSchema={setSchema} />
{/* <SchemaView schema={schema} /> */}
<div className="flex justify-end gap-16">
<Button
className="flex gap-1 items-center text-[#7167F6]"
Expand Down

0 comments on commit 84065e5

Please sign in to comment.