diff --git a/app/client/src/configs/index.ts b/app/client/src/configs/index.ts index 133d5ad60c4c..6bc8a12edf16 100644 --- a/app/client/src/configs/index.ts +++ b/app/client/src/configs/index.ts @@ -43,7 +43,6 @@ export type INJECTED_CONFIGS = { disableTelemetry: boolean; cloudServicesBaseUrl: string; googleRecaptchaSiteKey: string; - onboardingFormEnabled: boolean; supportEmail: string; }; declare global { @@ -120,7 +119,6 @@ const getConfigsFromEnvVars = (): INJECTED_CONFIGS => { cloudServicesBaseUrl: process.env.REACT_APP_CLOUD_SERVICES_BASE_URL || "", googleRecaptchaSiteKey: process.env.REACT_APP_GOOGLE_RECAPTCHA_SITE_KEY || "", - onboardingFormEnabled: !!process.env.REACT_APP_SHOW_ONBOARDING_FORM, supportEmail: process.env.APPSMITH_SUPPORT_EMAIL || "support@appsmith.com", }; }; @@ -285,7 +283,6 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => { cloudServicesBaseUrl: ENV_CONFIG.cloudServicesBaseUrl || APPSMITH_FEATURE_CONFIGS.cloudServicesBaseUrl, - onboardingFormEnabled: ENV_CONFIG.onboardingFormEnabled, appsmithSupportEmail: ENV_CONFIG.supportEmail, }; }; diff --git a/app/client/src/configs/types.ts b/app/client/src/configs/types.ts index 71b4e71c2f1c..21459345eaac 100644 --- a/app/client/src/configs/types.ts +++ b/app/client/src/configs/types.ts @@ -77,6 +77,5 @@ export type AppsmithUIConfigs = { enabled: boolean; apiKey: string; }; - onboardingFormEnabled: boolean; appsmithSupportEmail: string; }; diff --git a/app/client/src/pages/Applications/OnboardingForm.tsx b/app/client/src/pages/Applications/OnboardingForm.tsx deleted file mode 100644 index f573d62b103b..000000000000 --- a/app/client/src/pages/Applications/OnboardingForm.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import React, { useEffect } from "react"; -import { useSelector } from "react-redux"; -import { useScript, ScriptStatus } from "utils/hooks/useScript"; -import { getCurrentUser } from "selectors/usersSelectors"; -import styled from "styled-components"; -import { setOnboardingFormInProgress } from "utils/storage"; - -export const TypeformContainer = styled.div` - & iframe { - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - border: 0; - } -`; - -function OnboardingForm() { - const status = useScript(`https://embed.typeform.com/embed.js`); - const currentUser = useSelector(getCurrentUser); - - useEffect(() => { - setOnboardingFormInProgress(true); - }, []); - - if (status !== ScriptStatus.READY || !currentUser) return null; - - return ( - -