added format command and added trailing commas to reduce conflicts

This commit is contained in:
dswbx
2025-02-26 20:06:03 +01:00
parent 88b5359f1c
commit 7743f71a11
414 changed files with 3622 additions and 3610 deletions
+6 -6
View File
@@ -3,7 +3,7 @@ import { Button } from "ui/components/buttons/Button";
import {
JsonSchemaForm,
type JsonSchemaFormProps,
type JsonSchemaFormRef
type JsonSchemaFormRef,
} from "ui/components/form/json-schema";
import type { ContextModalProps } from "@mantine/modals";
@@ -15,14 +15,14 @@ type Props = JsonSchemaFormProps & {
data: any,
context: {
close: () => void;
}
},
) => void | Promise<void>;
};
export function SchemaFormModal({
context,
id,
innerProps: { schema, uiSchema, onSubmit, autoCloseAfterSubmit }
innerProps: { schema, uiSchema, onSubmit, autoCloseAfterSubmit },
}: ContextModalProps<Props>) {
const [valid, setValid] = useState(false);
const formRef = useRef<JsonSchemaFormRef>(null);
@@ -49,7 +49,7 @@ export function SchemaFormModal({
setSubmitting(true);
await onSubmit?.(formRef.current?.formData(), {
close: handleClose,
setError
setError,
});
setSubmitting(false);
@@ -90,6 +90,6 @@ SchemaFormModal.modalProps = {
header: "!bg-lightest !py-3 px-5 !h-auto !min-h-px",
content: "rounded-lg select-none",
title: "!font-bold !text-md",
body: "!p-0"
}
body: "!p-0",
},
};