From bbdc6da6348948a58f5932e20299b3b840e12b7c Mon Sep 17 00:00:00 2001 From: Harsh Bhat Date: Tue, 5 May 2026 11:12:37 +0530 Subject: [PATCH] chore: consolidate CE enterprise trial license links to a single form URL --- .../settings/(organization)/general/page.tsx | 8 +++++++- .../surveys/[surveyId]/(analysis)/responses/page.tsx | 8 +++++++- .../summary/components/SurveyAnalysisCTA.tsx | 3 +++ .../summary/components/share-survey-modal.tsx | 3 +++ .../components/shareEmbedModal/personal-links-tab.tsx | 5 +++-- .../surveys/[surveyId]/(analysis)/summary/page.tsx | 8 +++++++- apps/web/modules/ee/quotas/components/quotas-card.tsx | 5 +++-- .../components/email-customization-settings.tsx | 5 +++-- .../edit-memberships/organization-actions.tsx | 3 +++ .../components/invite-member/individual-invite-tab.tsx | 5 +++-- .../components/invite-member/invite-member-modal.tsx | 3 +++ .../settings/teams/components/members-view.tsx | 8 +++++++- .../modules/survey/editor/components/settings-view.tsx | 9 ++++++++- .../modules/survey/editor/components/survey-editor.tsx | 4 ++++ .../survey/editor/components/targeting-locked-card.tsx | 10 +++++++--- apps/web/modules/survey/editor/page.tsx | 2 ++ .../survey/follow-ups/components/follow-ups-view.tsx | 5 +++-- 17 files changed, 76 insertions(+), 18 deletions(-) diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx index 9305e7e4d1..cfb99b2fc0 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx @@ -1,6 +1,11 @@ import { OrganizationSettingsNavbar } from "@/app/(app)/environments/[environmentId]/settings/(organization)/components/OrganizationSettingsNavbar"; import { isInstanceAIConfigured } from "@/lib/ai/service"; -import { FB_LOGO_URL, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED } from "@/lib/constants"; +import { + ENTERPRISE_LICENSE_REQUEST_FORM_URL, + FB_LOGO_URL, + IS_FORMBRICKS_CLOUD, + IS_STORAGE_CONFIGURED, +} from "@/lib/constants"; import { getUser } from "@/lib/user/service"; import { getTranslate } from "@/lingodotdev/server"; import { getIsMultiOrgEnabled, getWhiteLabelPermission } from "@/modules/ee/license-check/lib/utils"; @@ -80,6 +85,7 @@ const Page = async (props: { params: Promise<{ environmentId: string }> }) => { fbLogoUrl={FB_LOGO_URL} user={user} isStorageConfigured={IS_STORAGE_CONFIGURED} + enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL} /> {isMultiOrgEnabled && ( }> diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx index 2f1f8371a5..bd723e899c 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx @@ -31,6 +31,7 @@ interface SurveyAnalysisCTAProps { isContactsEnabled: boolean; isFormbricksCloud: boolean; isStorageConfigured: boolean; + enterpriseLicenseRequestFormUrl: string; } interface ModalState { @@ -47,6 +48,7 @@ export const SurveyAnalysisCTA = ({ isContactsEnabled, isFormbricksCloud, isStorageConfigured, + enterpriseLicenseRequestFormUrl, }: SurveyAnalysisCTAProps) => { const { t } = useTranslation(); const router = useRouter(); @@ -231,6 +233,7 @@ export const SurveyAnalysisCTA = ({ isReadOnly={isReadOnly} isStorageConfigured={isStorageConfigured} projectCustomScripts={project.customHeadScripts} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> )} diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx index e7a45bec80..1ca6a85f71 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx @@ -54,6 +54,7 @@ interface ShareSurveyModalProps { isReadOnly: boolean; isStorageConfigured: boolean; projectCustomScripts?: string | null; + enterpriseLicenseRequestFormUrl: string; } export const ShareSurveyModal = ({ @@ -69,6 +70,7 @@ export const ShareSurveyModal = ({ isReadOnly, isStorageConfigured, projectCustomScripts, + enterpriseLicenseRequestFormUrl, }: ShareSurveyModalProps) => { const environmentId = survey.environmentId; const [surveyUrl, setSurveyUrl] = useState(getSurveyUrl(survey, publicDomain, "default")); @@ -108,6 +110,7 @@ export const ShareSurveyModal = ({ segments, isContactsEnabled, isFormbricksCloud, + enterpriseLicenseRequestFormUrl, }, disabled: survey.singleUse?.enabled, }, diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx index ee997970c8..a5d169eae9 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx @@ -7,7 +7,6 @@ import toast from "react-hot-toast"; import { useTranslation } from "react-i18next"; import { TSegment } from "@formbricks/types/segment"; import { DocumentationLinks } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/documentation-links"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { getFormattedErrorMessage } from "@/lib/utils/helper"; import { Button } from "@/modules/ui/components/button"; import { DatePicker } from "@/modules/ui/components/date-picker"; @@ -35,6 +34,7 @@ interface PersonalLinksTabProps { segments: TSegment[]; isContactsEnabled: boolean; isFormbricksCloud: boolean; + enterpriseLicenseRequestFormUrl: string; } interface PersonalLinksFormData { @@ -75,6 +75,7 @@ export const PersonalLinksTab = ({ surveyId, isContactsEnabled, isFormbricksCloud, + enterpriseLicenseRequestFormUrl, }: PersonalLinksTabProps) => { const { t } = useTranslation(); @@ -170,7 +171,7 @@ export const PersonalLinksTab = ({ text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"), href: isFormbricksCloud ? `/environments/${environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL, + : enterpriseLicenseRequestFormUrl, }, { text: t("common.learn_more"), diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx index 08ebf09dbe..7bb6512137 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx @@ -4,7 +4,12 @@ import { SurveyAnalysisNavigation } from "@/app/(app)/environments/[environmentI import { SummaryPage } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SummaryPage"; import { SurveyAnalysisCTA } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA"; import { getSurveySummary } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/lib/surveySummary"; -import { DEFAULT_LOCALE, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED } from "@/lib/constants"; +import { + DEFAULT_LOCALE, + ENTERPRISE_LICENSE_REQUEST_FORM_URL, + IS_FORMBRICKS_CLOUD, + IS_STORAGE_CONFIGURED, +} from "@/lib/constants"; import { getPublicDomain } from "@/lib/getPublicUrl"; import { getSurvey } from "@/lib/survey/service"; import { getUser } from "@/lib/user/service"; @@ -74,6 +79,7 @@ const SurveyPage = async (props: { params: Promise<{ environmentId: string; surv isContactsEnabled={isContactsEnabled} isFormbricksCloud={IS_FORMBRICKS_CLOUD} isStorageConfigured={IS_STORAGE_CONFIGURED} + enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL} /> }> diff --git a/apps/web/modules/ee/quotas/components/quotas-card.tsx b/apps/web/modules/ee/quotas/components/quotas-card.tsx index d7cc16492a..8f80029984 100644 --- a/apps/web/modules/ee/quotas/components/quotas-card.tsx +++ b/apps/web/modules/ee/quotas/components/quotas-card.tsx @@ -10,7 +10,6 @@ import toast from "react-hot-toast"; import { useTranslation } from "react-i18next"; import { TSurveyQuota, TSurveyQuotaInput } from "@formbricks/types/quota"; import { TSurvey } from "@formbricks/types/surveys/types"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { getFormattedErrorMessage } from "@/lib/utils/helper"; import { createQuotaAction, @@ -30,6 +29,7 @@ interface QuotasCardProps { isFormbricksCloud?: boolean; quotas: TSurveyQuota[]; hasResponses: boolean; + enterpriseLicenseRequestFormUrl: string; } const AddQuotaButton = ({ @@ -68,6 +68,7 @@ export const QuotasCard = ({ isFormbricksCloud, quotas, hasResponses, + enterpriseLicenseRequestFormUrl, }: QuotasCardProps) => { const { t } = useTranslation(); const [open, setOpen] = useState(false); @@ -178,7 +179,7 @@ export const QuotasCard = ({ text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"), href: isFormbricksCloud ? `/environments/${environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL, + : enterpriseLicenseRequestFormUrl, }, { text: t("common.learn_more"), diff --git a/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx b/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx index 07bcdefe09..8c640fd7b1 100644 --- a/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx +++ b/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx @@ -11,7 +11,6 @@ import { TAllowedFileExtension } from "@formbricks/types/storage"; import { TUser } from "@formbricks/types/user"; import { SettingsCard } from "@/app/(app)/environments/[environmentId]/settings/components/SettingsCard"; import { cn } from "@/lib/cn"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { getFormattedErrorMessage } from "@/lib/utils/helper"; import { removeOrganizationEmailLogoUrlAction, @@ -37,6 +36,7 @@ interface EmailCustomizationSettingsProps { user: TUser | null; fbLogoUrl: string; isStorageConfigured: boolean; + enterpriseLicenseRequestFormUrl: string; } export const EmailCustomizationSettings = ({ @@ -48,6 +48,7 @@ export const EmailCustomizationSettings = ({ user, fbLogoUrl, isStorageConfigured, + enterpriseLicenseRequestFormUrl, }: EmailCustomizationSettingsProps) => { const { t } = useTranslation(); @@ -185,7 +186,7 @@ export const EmailCustomizationSettings = ({ text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"), href: isFormbricksCloud ? `/environments/${environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL, + : enterpriseLicenseRequestFormUrl, }, { text: t("common.learn_more"), diff --git a/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx b/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx index 1fb0a348ec..f7a5c42ded 100644 --- a/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx +++ b/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx @@ -39,6 +39,7 @@ interface OrganizationActionsProps { isStorageConfigured: boolean; isTeamAdmin: boolean; userAdminTeamIds?: string[]; + enterpriseLicenseRequestFormUrl: string; } export const OrganizationActions = ({ @@ -56,6 +57,7 @@ export const OrganizationActions = ({ isStorageConfigured, isTeamAdmin, userAdminTeamIds, + enterpriseLicenseRequestFormUrl, }: OrganizationActionsProps) => { const router = useRouter(); const { t } = useTranslation(); @@ -174,6 +176,7 @@ export const OrganizationActions = ({ isOwnerOrManager={isOwnerOrManager} isTeamAdmin={isTeamAdmin} userAdminTeamIds={userAdminTeamIds} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> diff --git a/apps/web/modules/organization/settings/teams/components/invite-member/individual-invite-tab.tsx b/apps/web/modules/organization/settings/teams/components/invite-member/individual-invite-tab.tsx index 071ab2ad74..2ad512a053 100644 --- a/apps/web/modules/organization/settings/teams/components/invite-member/individual-invite-tab.tsx +++ b/apps/web/modules/organization/settings/teams/components/invite-member/individual-invite-tab.tsx @@ -10,7 +10,6 @@ import { z } from "zod"; import { ZId } from "@formbricks/types/common"; import { TOrganizationRole, ZOrganizationRole } from "@formbricks/types/memberships"; import { ZUserName } from "@formbricks/types/user"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { AddMemberRole } from "@/modules/ee/role-management/components/add-member-role"; import { TOrganizationTeam } from "@/modules/ee/teams/team-list/types/team"; import { Alert, AlertDescription } from "@/modules/ui/components/alert"; @@ -30,6 +29,7 @@ interface IndividualInviteTabProps { environmentId: string; membershipRole?: TOrganizationRole; showTeamAdminRestrictions: boolean; + enterpriseLicenseRequestFormUrl: string; } export const IndividualInviteTab = ({ @@ -41,6 +41,7 @@ export const IndividualInviteTab = ({ environmentId, membershipRole, showTeamAdminRestrictions, + enterpriseLicenseRequestFormUrl, }: IndividualInviteTabProps) => { const ZFormSchema = z.object({ name: ZUserName, @@ -192,7 +193,7 @@ export const IndividualInviteTab = ({ href={ isFormbricksCloud ? `/environments/${environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL + : enterpriseLicenseRequestFormUrl }> {t("common.upgrade_plan")} diff --git a/apps/web/modules/organization/settings/teams/components/invite-member/invite-member-modal.tsx b/apps/web/modules/organization/settings/teams/components/invite-member/invite-member-modal.tsx index 1e569f18f1..411b00240e 100644 --- a/apps/web/modules/organization/settings/teams/components/invite-member/invite-member-modal.tsx +++ b/apps/web/modules/organization/settings/teams/components/invite-member/invite-member-modal.tsx @@ -30,6 +30,7 @@ interface InviteMemberModalProps { isOwnerOrManager: boolean; isTeamAdmin: boolean; userAdminTeamIds?: string[]; + enterpriseLicenseRequestFormUrl: string; } export const InviteMemberModal = ({ @@ -45,6 +46,7 @@ export const InviteMemberModal = ({ isOwnerOrManager, isTeamAdmin, userAdminTeamIds, + enterpriseLicenseRequestFormUrl, }: InviteMemberModalProps) => { const [type, setType] = useState<"individual" | "bulk">("individual"); @@ -68,6 +70,7 @@ export const InviteMemberModal = ({ teams={filteredTeams} membershipRole={membershipRole} showTeamAdminRestrictions={showTeamAdminRestrictions} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> ), bulk: ( diff --git a/apps/web/modules/organization/settings/teams/components/members-view.tsx b/apps/web/modules/organization/settings/teams/components/members-view.tsx index cbae9e3e1c..0264c6a861 100644 --- a/apps/web/modules/organization/settings/teams/components/members-view.tsx +++ b/apps/web/modules/organization/settings/teams/components/members-view.tsx @@ -2,7 +2,12 @@ import { Suspense } from "react"; import { TOrganizationRole } from "@formbricks/types/memberships"; import { TOrganization } from "@formbricks/types/organizations"; import { SettingsCard } from "@/app/(app)/environments/[environmentId]/settings/components/SettingsCard"; -import { INVITE_DISABLED, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED } from "@/lib/constants"; +import { + ENTERPRISE_LICENSE_REQUEST_FORM_URL, + INVITE_DISABLED, + IS_FORMBRICKS_CLOUD, + IS_STORAGE_CONFIGURED, +} from "@/lib/constants"; import { getTranslate } from "@/lingodotdev/server"; import { getIsMultiOrgEnabled } from "@/modules/ee/license-check/lib/utils"; import { getTeamsWhereUserIsAdmin } from "@/modules/ee/teams/lib/roles"; @@ -70,6 +75,7 @@ export const MembersView = async ({ isAccessControlAllowed={isAccessControlAllowed} isFormbricksCloud={IS_FORMBRICKS_CLOUD} isStorageConfigured={IS_STORAGE_CONFIGURED} + enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL} environmentId={environmentId} isMultiOrgEnabled={isMultiOrgEnabled} teams={teams} diff --git a/apps/web/modules/survey/editor/components/settings-view.tsx b/apps/web/modules/survey/editor/components/settings-view.tsx index b32d4180da..a7f28472df 100644 --- a/apps/web/modules/survey/editor/components/settings-view.tsx +++ b/apps/web/modules/survey/editor/components/settings-view.tsx @@ -29,6 +29,7 @@ interface SettingsViewProps { isFormbricksCloud: boolean; isQuotasAllowed: boolean; quotas: TSurveyQuota[]; + enterpriseLicenseRequestFormUrl: string; } export const SettingsView = ({ @@ -46,6 +47,7 @@ export const SettingsView = ({ projectPermission, isFormbricksCloud, quotas, + enterpriseLicenseRequestFormUrl, }: SettingsViewProps) => { const isAppSurvey = localSurvey.type === "app"; @@ -70,7 +72,11 @@ export const SettingsView = ({ ) : ( - + )} ) : null} @@ -89,6 +95,7 @@ export const SettingsView = ({ isFormbricksCloud={isFormbricksCloud} quotas={quotas} hasResponses={responseCount > 0} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> { const [activeView, setActiveView] = useState("elements"); const [activeElementId, setActiveElementId] = useState(null); @@ -266,6 +268,7 @@ export const SurveyEditor = ({ isFormbricksCloud={isFormbricksCloud} isQuotasAllowed={isQuotasAllowed} quotas={quotas} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> )} @@ -280,6 +283,7 @@ export const SurveyEditor = ({ userEmail={userEmail} teamMemberDetails={teamMemberDetails} locale={locale} + enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl} /> )} diff --git a/apps/web/modules/survey/editor/components/targeting-locked-card.tsx b/apps/web/modules/survey/editor/components/targeting-locked-card.tsx index ecdb7fda04..5639eef7e1 100644 --- a/apps/web/modules/survey/editor/components/targeting-locked-card.tsx +++ b/apps/web/modules/survey/editor/components/targeting-locked-card.tsx @@ -4,15 +4,19 @@ import * as Collapsible from "@radix-ui/react-collapsible"; import { LockIcon } from "lucide-react"; import { useState } from "react"; import { useTranslation } from "react-i18next"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { UpgradePrompt } from "@/modules/ui/components/upgrade-prompt"; interface TargetingLockedCardProps { isFormbricksCloud: boolean; environmentId: string; + enterpriseLicenseRequestFormUrl: string; } -export const TargetingLockedCard = ({ isFormbricksCloud, environmentId }: TargetingLockedCardProps) => { +export const TargetingLockedCard = ({ + isFormbricksCloud, + environmentId, + enterpriseLicenseRequestFormUrl, +}: TargetingLockedCardProps) => { const { t } = useTranslation(); const [open, setOpen] = useState(false); @@ -48,7 +52,7 @@ export const TargetingLockedCard = ({ isFormbricksCloud, environmentId }: Target text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"), href: isFormbricksCloud ? `/environments/${environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL, + : enterpriseLicenseRequestFormUrl, }, { text: t("common.learn_more"), diff --git a/apps/web/modules/survey/editor/page.tsx b/apps/web/modules/survey/editor/page.tsx index f80a525a91..58fe4f933b 100644 --- a/apps/web/modules/survey/editor/page.tsx +++ b/apps/web/modules/survey/editor/page.tsx @@ -1,6 +1,7 @@ import { ResourceNotFoundError } from "@formbricks/types/errors"; import { DEFAULT_LOCALE, + ENTERPRISE_LICENSE_REQUEST_FORM_URL, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED, MAIL_FROM, @@ -138,6 +139,7 @@ export const SurveyEditorPage = async (props: { quotas={quotas} isExternalUrlsAllowed={isExternalUrlsAllowed} publicDomain={publicDomain} + enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL} /> ); }; diff --git a/apps/web/modules/survey/follow-ups/components/follow-ups-view.tsx b/apps/web/modules/survey/follow-ups/components/follow-ups-view.tsx index 20182091d3..b15d43a5e3 100644 --- a/apps/web/modules/survey/follow-ups/components/follow-ups-view.tsx +++ b/apps/web/modules/survey/follow-ups/components/follow-ups-view.tsx @@ -6,7 +6,6 @@ import { useTranslation } from "react-i18next"; import { TSurveyFollowUp } from "@formbricks/database/types/survey-follow-up"; import { TSurvey } from "@formbricks/types/surveys/types"; import { TUserLocale } from "@formbricks/types/user"; -import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants"; import { TFollowUpEmailToUser } from "@/modules/survey/editor/types/survey-follow-up"; import { FollowUpItem } from "@/modules/survey/follow-ups/components/follow-up-item"; import { FollowUpModal } from "@/modules/survey/follow-ups/components/follow-up-modal"; @@ -23,6 +22,7 @@ interface FollowUpsViewProps { userEmail: string; teamMemberDetails: TFollowUpEmailToUser[]; locale: TUserLocale; + enterpriseLicenseRequestFormUrl: string; } export const FollowUpsView = ({ @@ -35,6 +35,7 @@ export const FollowUpsView = ({ userEmail, teamMemberDetails, locale, + enterpriseLicenseRequestFormUrl, }: FollowUpsViewProps) => { const { t } = useTranslation(); const [addFollowUpModalOpen, setAddFollowUpModalOpen] = useState(false); @@ -55,7 +56,7 @@ export const FollowUpsView = ({ : t("common.request_trial_license"), href: isFormbricksCloud ? `/environments/${localSurvey.environmentId}/settings/billing` - : ENTERPRISE_LICENSE_REQUEST_FORM_URL, + : enterpriseLicenseRequestFormUrl, }, { text: t("common.learn_more"),