Skip to content

Commit a8e1024

Browse files
authored
Remove Transfer title from card in replication settings when new table is enabled (#20762)
1 parent 526fe63 commit a8e1024

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

airbyte-webapp/src/views/Connection/ConnectionForm/ConnectionFormFields.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { useUnmount } from "react-use";
99
import { ControlLabels } from "components";
1010
import { FormChangeTracker } from "components/common/FormChangeTracker";
1111
import { Button } from "components/ui/Button";
12-
import { Heading } from "components/ui/Heading";
1312
import { Input } from "components/ui/Input";
1413

1514
import { 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

Comments
 (0)