mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
added format command and added trailing commas to reduce conflicts
This commit is contained in:
@@ -8,7 +8,7 @@ import { MantineSelect } from "ui/components/form/hook-form-mantine/MantineSelec
|
||||
import { useEvent } from "ui/hooks/use-event";
|
||||
import {
|
||||
EntityFieldsForm,
|
||||
type EntityFieldsFormRef
|
||||
type EntityFieldsFormRef,
|
||||
} from "ui/routes/data/forms/entity.fields.form";
|
||||
import { ModalBody, ModalFooter, type TCreateModalSchema, useStepContext } from "./CreateModal";
|
||||
|
||||
@@ -25,9 +25,9 @@ export function StepEntityFields() {
|
||||
fields: defaultFields,
|
||||
config: {
|
||||
sort_field: "id",
|
||||
sort_dir: "asc"
|
||||
}
|
||||
})
|
||||
sort_dir: "asc",
|
||||
},
|
||||
}),
|
||||
);
|
||||
const {
|
||||
control,
|
||||
@@ -35,11 +35,11 @@ export function StepEntityFields() {
|
||||
getValues,
|
||||
handleSubmit,
|
||||
watch,
|
||||
setValue
|
||||
setValue,
|
||||
} = useForm({
|
||||
mode: "onTouched",
|
||||
resolver: typeboxResolver(schema),
|
||||
defaultValues: initial as NonNullable<Schema>
|
||||
defaultValues: initial as NonNullable<Schema>,
|
||||
});
|
||||
|
||||
const values = watch();
|
||||
@@ -58,8 +58,8 @@ export function StepEntityFields() {
|
||||
return {
|
||||
...prev,
|
||||
entities: {
|
||||
create: [getValues() as any]
|
||||
}
|
||||
create: [getValues() as any],
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
@@ -119,7 +119,7 @@ export function StepEntityFields() {
|
||||
<ModalFooter
|
||||
next={{
|
||||
disabled: !isValid,
|
||||
type: "submit"
|
||||
type: "submit",
|
||||
//onClick: handleNext
|
||||
}}
|
||||
prev={{ onClick: stepBack }}
|
||||
|
||||
Reference in New Issue
Block a user