From 523e16d8b7f46bbcd00ee42e84d2f593f44254a6 Mon Sep 17 00:00:00 2001 From: Saketh Varma Date: Tue, 10 Jun 2025 11:24:06 -0600 Subject: [PATCH] fix(ui): Move buttons outside the form (#13715) --- .../source/builder/RecipeForm/RecipeForm.tsx | 159 +++++++++--------- 1 file changed, 82 insertions(+), 77 deletions(-) diff --git a/datahub-web-react/src/app/ingest/source/builder/RecipeForm/RecipeForm.tsx b/datahub-web-react/src/app/ingest/source/builder/RecipeForm/RecipeForm.tsx index f6da301793..007d1ae87e 100644 --- a/datahub-web-react/src/app/ingest/source/builder/RecipeForm/RecipeForm.tsx +++ b/datahub-web-react/src/app/ingest/source/builder/RecipeForm/RecipeForm.tsx @@ -148,99 +148,104 @@ function RecipeForm(props: Props) { } return ( - - - } text="Connection" />} key="0"> - {fields.map((field, i) => ( - - ))} - {CONNECTORS_WITH_TEST_CONNECTION.has(type as string) && ( - - + + + } text="Connection" />} + key="0" + > + {fields.map((field, i) => ( + - - )} - - - {filterFields.length > 0 && ( - + ))} + {CONNECTORS_WITH_TEST_CONNECTION.has(type as string) && ( + + + + )} + + + {filterFields.length > 0 && ( + + } + text="Filter" + sectionTooltip={filterSectionTooltip} + /> + } + key="1" + > + {filterFields.map((field, i) => ( + + {shouldRenderFilterSectionHeader(field, i, filterFields) && ( + {field.section} + )} + + + + + ))} + + + )} + } - text="Filter" - sectionTooltip={filterSectionTooltip} + icon={} + text="Settings" + sectionTooltip={advancedSectionTooltip} /> } - key="1" + key="2" > - {filterFields.map((field, i) => ( - - {shouldRenderFilterSectionHeader(field, i, filterFields) && ( - {field.section} - )} - - - - + {advancedFields.map((field, i) => ( + ))} - )} - - } - text="Settings" - sectionTooltip={advancedSectionTooltip} - /> - } - key="2" - > - {advancedFields.map((field, i) => ( - - ))} - - + - + - + ); }