mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
added format command and added trailing commas to reduce conflicts
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
ModalFooter,
|
||||
type TCreateModalSchema,
|
||||
entitySchema,
|
||||
useStepContext
|
||||
useStepContext,
|
||||
} from "./CreateModal";
|
||||
|
||||
export function StepEntity() {
|
||||
@@ -18,7 +18,7 @@ export function StepEntity() {
|
||||
const { register, handleSubmit, formState, watch } = useForm({
|
||||
mode: "onTouched",
|
||||
resolver: typeboxResolver(entitySchema),
|
||||
defaultValues: state.entities?.create?.[0] ?? {}
|
||||
defaultValues: state.entities?.create?.[0] ?? {},
|
||||
});
|
||||
/*const data = watch();
|
||||
console.log("state", { isValid });
|
||||
@@ -83,7 +83,7 @@ export function StepEntity() {
|
||||
<ModalFooter
|
||||
next={{
|
||||
type: "submit",
|
||||
disabled: !formState.isValid
|
||||
disabled: !formState.isValid,
|
||||
//onClick:
|
||||
}}
|
||||
prev={{ onClick: stepBack }}
|
||||
|
||||
Reference in New Issue
Block a user