diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 261a27bc8d..3e734f7ca7 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1173,6 +1173,7 @@ "test_failed": "Test failed", "provide_api_key": "Provide API key", "api_key_modal_subtitle": "API keys allow you to make API calls for your own account.", + "api_key_modal_subtitle_platform": "Create a marketplace or platform instead.", "api_keys_subtitle": "Generate API keys to use for accessing your own account.", "create_api_key": "Create an API key", "personal_note": "Name this key", diff --git a/packages/features/ee/api-keys/components/ApiKeyDialogForm.tsx b/packages/features/ee/api-keys/components/ApiKeyDialogForm.tsx index 1cc97cdcd5..1a4add9cb7 100644 --- a/packages/features/ee/api-keys/components/ApiKeyDialogForm.tsx +++ b/packages/features/ee/api-keys/components/ApiKeyDialogForm.tsx @@ -1,9 +1,11 @@ +import Link from "next/link"; import { useState } from "react"; import { Controller, useForm } from "react-hook-form"; import dayjs from "@calcom/dayjs"; import type { TApiKeys } from "@calcom/ee/api-keys/components/ApiKeyListItem"; import LicenseRequired from "@calcom/ee/common/components/LicenseRequired"; +import { IS_CALCOM } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Button } from "@calcom/ui/components/button"; @@ -142,8 +144,23 @@ export default function ApiKeyDialogForm({

{defaultValues ? t("edit_api_key") : t("create_api_key")}

-

{t("api_key_modal_subtitle")}

+ {IS_CALCOM ? ( +
+
+ {t("api_key_modal_subtitle")} +
+ + {t("api_key_modal_subtitle_platform")} + +
+ ) : ( +

{t("api_key_modal_subtitle")}

+ )} +