From 0b1ac8f44550e911e2dcf7576838904cd9fde065 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Sun, 25 Apr 2021 15:57:00 -0700 Subject: [PATCH] WIP --- .../Settings/__snapshots__/SettingsComponent.test.tsx.snap | 4 ---- .../SettingsPane/__snapshots__/SettingsPane.test.tsx.snap | 2 -- .../__snapshots__/UploadItemsPane.test.tsx.snap | 1 - .../DeleteDatabaseConfirmationPanel.test.tsx.snap | 1 - src/Utils/PricingUtils.ts | 3 ++- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap b/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap index 790b14b95..33eaf9d65 100644 --- a/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap +++ b/src/Explorer/Controls/Settings/__snapshots__/SettingsComponent.test.tsx.snap @@ -442,7 +442,6 @@ exports[`SettingsComponent renders 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { @@ -1002,7 +1001,6 @@ exports[`SettingsComponent renders 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { @@ -1575,7 +1573,6 @@ exports[`SettingsComponent renders 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { @@ -2135,7 +2132,6 @@ exports[`SettingsComponent renders 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { diff --git a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap index 7d961e918..7ad24cd8d 100644 --- a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap +++ b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap @@ -418,7 +418,6 @@ exports[`Settings Pane should render Default properly 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { @@ -1101,7 +1100,6 @@ exports[`Settings Pane should render Gremlin properly 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { diff --git a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap index 084047ff8..085defcbd 100644 --- a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap +++ b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap @@ -418,7 +418,6 @@ exports[`Upload Items Pane should render Default properly 1`] = ` }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { diff --git a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap index f4e22d048..5ef8d7911 100644 --- a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap @@ -419,7 +419,6 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database }, "databaseAccount": [Function], "databases": [Function], - "defaultExperience": [Function], "deleteCollectionText": [Function], "deleteDatabaseText": [Function], "graphStylingPane": GraphStylingPane { diff --git a/src/Utils/PricingUtils.ts b/src/Utils/PricingUtils.ts index 75caf2d51..3719f6dc5 100644 --- a/src/Utils/PricingUtils.ts +++ b/src/Utils/PricingUtils.ts @@ -1,5 +1,6 @@ import { DefaultAccountExperienceType } from "../DefaultAccountExperienceType"; import * as Constants from "../Shared/Constants"; +import { userContext } from "../UserContext"; import * as AutoPilotUtils from "../Utils/AutoPilotUtils"; interface ComputeRUUsagePriceHourlyArgs { @@ -262,7 +263,7 @@ export function getUpsellMessage( serverId = "default", isFreeTier = false, isFirstResourceCreated = false, - defaultExperience: string, + defaultExperience: typeof userContext.apiType, isCollection: boolean ): string { if (isFreeTier) {