|
@@ -3,7 +3,7 @@ import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-l
|
|
|
import { FlowNodeJSON } from '../typings';
|
|
import { FlowNodeJSON } from '../typings';
|
|
|
import { FormHeader, FormContent, FormInputs, FormOutputs } from '../form-components';
|
|
import { FormHeader, FormContent, FormInputs, FormOutputs } from '../form-components';
|
|
|
|
|
|
|
|
-export const renderForm = ({ form }: FormRenderProps<FlowNodeJSON>) => (
|
|
|
|
|
|
|
+export const renderForm = ({ form }: FormRenderProps<FlowNodeJSON['data']>) => (
|
|
|
<>
|
|
<>
|
|
|
<FormHeader />
|
|
<FormHeader />
|
|
|
<FormContent>
|
|
<FormContent>
|
|
@@ -13,7 +13,7 @@ export const renderForm = ({ form }: FormRenderProps<FlowNodeJSON>) => (
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-export const defaultFormMeta: FormMeta<FlowNodeJSON> = {
|
|
|
|
|
|
|
+export const defaultFormMeta: FormMeta<FlowNodeJSON['data']> = {
|
|
|
render: renderForm,
|
|
render: renderForm,
|
|
|
validateTrigger: ValidateTrigger.onChange,
|
|
validateTrigger: ValidateTrigger.onChange,
|
|
|
validate: {
|
|
validate: {
|