changes schema editor to jotai
This commit is contained in:
@@ -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: {},
|
||||
});
|
||||
|
Reference in New Issue
Block a user