@@ -9,7 +9,6 @@ import { useUnmount } from "react-use";
99import { ControlLabels } from "components" ;
1010import { FormChangeTracker } from "components/common/FormChangeTracker" ;
1111import { Button } from "components/ui/Button" ;
12- import { Heading } from "components/ui/Heading" ;
1312import { Input } from "components/ui/Input" ;
1413
1514import { NamespaceDefinitionType } from "core/request/AirbyteClient" ;
@@ -51,23 +50,21 @@ export const ConnectionFormFields: React.FC<ConnectionFormFieldsProps> = ({ valu
5150 } ) ;
5251
5352 const isNewStreamsTableEnabled = process . env . REACT_APP_NEW_STREAMS_TABLE ?? false ;
53+ const firstSectionTitle = isNewStreamsTableEnabled ? undefined : < FormattedMessage id = "connection.transfer" /> ;
5454
5555 return (
5656 < >
5757 { /* FormChangeTracker is here as it has access to everything it needs without being repeated */ }
5858 < FormChangeTracker changed = { dirty } formId = { formId } />
5959 < div className = { styles . formContainer } >
60- < Section title = { < FormattedMessage id = "connection.transfer" /> } >
60+ < Section title = { firstSectionTitle } >
6161 < ScheduleField />
6262 { allowAutoDetectSchema && (
6363 < Field name = "nonBreakingChangesPreference" component = { NonBreakingChangesPreferenceField } />
6464 ) }
6565 </ Section >
6666 { ! isNewStreamsTableEnabled && (
67- < Section >
68- < Heading as = "h2" size = "sm" >
69- < FormattedMessage id = "connection.streams" />
70- </ Heading >
67+ < Section title = { < FormattedMessage id = "connection.streams" /> } >
7168 < span className = { readonlyClass } >
7269 < Field name = "namespaceDefinition" component = { NamespaceDefinitionField } />
7370 </ span >
0 commit comments