From 7f19f604a94902ec19832f4ef475b1c59b886865 Mon Sep 17 00:00:00 2001 From: Tuan Le <30828528+tuankg1028@users.noreply.github.com> Date: Tue, 1 Jul 2025 08:48:36 +0700 Subject: [PATCH] Pass Form Instance to GoogleModal Form Component (#8586) ### What problem does this PR solve? This PR enables the `Form` component within the `GoogleModal` to directly access and manipulate the form state by passing the form instance from the parent component. This enhances form control and data manipulation capabilities within the modal, improving the component's functionality and integration with the parent form. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/pages/user-setting/setting-model/google-modal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/user-setting/setting-model/google-modal/index.tsx b/web/src/pages/user-setting/setting-model/google-modal/index.tsx index 5bc7af510..a404118a5 100644 --- a/web/src/pages/user-setting/setting-model/google-modal/index.tsx +++ b/web/src/pages/user-setting/setting-model/google-modal/index.tsx @@ -47,7 +47,7 @@ const GoogleModal = ({ onCancel={hideModal} okButtonProps={{ loading }} > -
+ label={t('modelType')} name="model_type"