chore: fixed enterprise warning and description (#14791)

* fixed enterprise warning and description

* chore: remove fullstop

---------

Co-authored-by: Udit Takkar <udit222001@gmail.com>
This commit is contained in:
Peer Richelsen
2024-05-02 15:14:13 +00:00
committed by GitHub
co-authored by Udit Takkar
parent 5bafd1b264
commit 676eac357f
25 changed files with 11 additions and 72 deletions
@@ -1,11 +1,10 @@
import { useSession } from "next-auth/react";
import { Trans } from "next-i18next";
import type { AriaRole, ComponentType } from "react";
import React, { Fragment, useEffect } from "react";
import { SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calcom/lib/constants";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { EmptyScreen, Alert } from "@calcom/ui";
import { EmptyScreen, Alert, Button } from "@calcom/ui";
type LicenseRequiredProps = {
as?: keyof JSX.IntrinsicElements | "";
@@ -41,15 +40,8 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
severity="warning"
title={
<>
{t("enterprise_license")}.{" "}
<Trans i18nKey="enterprise_license_development">
You can test this feature on development mode. For production usage please have an
administrator go to{" "}
<a href={`${WEBAPP_URL}/auth/setup`} className="underline">
/auth/setup
</a>{" "}
to enter a license key.
</Trans>
{t("enterprise_license_locally")} {t("enterprise_license_sales")}{" "}
<a className="underline" href="https://cal.com/sales">{t("contact_sales")}</a>
</>
}
/>
@@ -59,19 +51,12 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
<EmptyScreen
Icon="triangle-alert"
headline={t("enterprise_license")}
description={
<Trans i18nKey="enterprise_license_description">
To enable this feature, have an administrator go to{" "}
<a href={`${WEBAPP_URL}/auth/setup`} className="underline">
/auth/setup
</a>
to enter a license key. If a license key is already in place, please contact{" "}
<a href={`mailto:${SUPPORT_MAIL_ADDRESS}`} className="underline">
<Trans>{{ SUPPORT_MAIL_ADDRESS }}</Trans>
</a>
for help.
</Trans>
buttonRaw={
<Button color="secondary" href="https://cal.com/sales">
{t(`contact_sales`)}
</Button>
}
description={t("enterprise_license_sales")}
/>
)}
</Component>