diff --git a/components/schema/field-type-input.tsx b/components/schema/field-type-input.tsx index ee42b7d..baa30d8 100644 --- a/components/schema/field-type-input.tsx +++ b/components/schema/field-type-input.tsx @@ -1,14 +1,16 @@ -import { useRecoilValue } from "recoil"; +// import { useRecoilValue } from "recoil"; import { SchemaEditAtom } from "../../recoil/atoms/schema"; import { TEMPLATE_TYPES } from "../../constants/TemplateTypes"; import { FC, PropsWithChildren } from "react"; +import { useAtom } from "jotai"; interface IProps { bind: InputBinder; } export const FieldTypeInput: FC> = ({ bind }) => { - const schema = useRecoilValue(SchemaEditAtom); + // const schema = useRecoilValue(SchemaEditAtom); + const [schema] = useAtom(SchemaEditAtom); return (