changes schema editor to jotai

This commit is contained in:
2024-09-04 04:28:57 -06:00
parent f87a759048
commit b529445851
5 changed files with 67 additions and 47 deletions

View File

@@ -1,6 +1,15 @@
import { atom } from "recoil";
// import { atom } from "recoil";
import { atom } from "jotai";
// export const SchemaEditAtom = atom<Schema>({
// key: "schema-edit",
// default: { name: "", types: {}, schema: {}, id: "" },
// });
export const SchemaEditAtom = atom<Schema>({
key: "schema-edit",
default: { name: "", types: {}, schema: {}, id: "" },
name: "",
id: "",
types: {},
fields: {},
});