diff --git a/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx b/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx index c57d8ec89..4194e820b 100644 --- a/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx +++ b/src/Explorer/Panes/AddDatabasePanel/AddDatabasePanel.tsx @@ -179,10 +179,12 @@ export const AddDatabasePanel: FunctionComponent = ({ /> )}
-
+ - * - {databaseIdLabel} + + + {databaseIdLabel} + {databaseIdTooltipText} @@ -203,32 +205,34 @@ export const AddDatabasePanel: FunctionComponent = ({ styles={{ root: { width: 300 } }} /> - - setDatabaseCreateNewShared(!databaseCreateNewShared)} - /> - {databaseLevelThroughputTooltipText} - - - {!isServerlessAccount() && databaseCreateNewShared && ( - (throughput = newThroughput)} - setIsAutoscale={(isAutoscale: boolean) => (isAutoscaleSelected = isAutoscale)} - onCostAcknowledgeChange={(isAcknowledged: boolean) => (isCostAcknowledged = isAcknowledged)} - /> + {!isServerlessAccount() && ( + + setDatabaseCreateNewShared(!databaseCreateNewShared)} + /> + {databaseLevelThroughputTooltipText} + )} -
+ + + {!isServerlessAccount() && databaseCreateNewShared && ( + (throughput = newThroughput)} + setIsAutoscale={(isAutoscale: boolean) => (isAutoscaleSelected = isAutoscale)} + onCostAcknowledgeChange={(isAcknowledged: boolean) => (isCostAcknowledged = isAcknowledged)} + /> + )}
); diff --git a/src/Explorer/Panes/AddDatabasePanel/__snapshots__/AddDatabasePanel.test.tsx.snap b/src/Explorer/Panes/AddDatabasePanel/__snapshots__/AddDatabasePanel.test.tsx.snap index 75e11242d..e89600bec 100644 --- a/src/Explorer/Panes/AddDatabasePanel/__snapshots__/AddDatabasePanel.test.tsx.snap +++ b/src/Explorer/Panes/AddDatabasePanel/__snapshots__/AddDatabasePanel.test.tsx.snap @@ -10,16 +10,17 @@ exports[`AddDatabasePane Pane should render Default properly 1`] = `
-
+ - * + *  Database id @@ -82,14 +83,14 @@ exports[`AddDatabasePane Pane should render Default properly 1`] = ` Provisioned throughput at the database level will be shared across all collections within the database. - -
+ +
`;