Feat: Add bing form #3221 (#8875)

### What problem does this PR solve?

Feat: Add bing form #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-16 17:56:55 +08:00
committed by GitHub
parent d2df669135
commit b3018a455f
7 changed files with 159 additions and 34 deletions

View File

@ -13,6 +13,7 @@ import {
import { Input, NumberInput } from '@/components/ui/input';
import { useTranslate } from '@/hooks/common-hooks';
import { zodResolver } from '@hookform/resolvers/zod';
import { memo } from 'react';
import { useForm, useFormContext } from 'react-hook-form';
import { z } from 'zod';
import { initialExeSqlValues } from '../../constant';
@ -135,7 +136,7 @@ export function ExeSQLFormWidgets({ loading }: { loading: boolean }) {
);
}
const ExeSQLForm = ({ node }: INextOperatorForm) => {
function ExeSQLForm({ node }: INextOperatorForm) {
const defaultValues = useFormValues(initialExeSqlValues, node);
const { onSubmit, loading } = useSubmitForm();
@ -155,6 +156,6 @@ const ExeSQLForm = ({ node }: INextOperatorForm) => {
</FormWrapper>
</Form>
);
};
}
export default ExeSQLForm;
export default memo(ExeSQLForm);