extracted upgrade to pro strings (#3383)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ff6a7bf2a6
commit
78e2db6d70
4 files changed
+11
-18
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { useRouter } from "next/router";
|
||||
import { useMemo, useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Alert } from "@calcom/ui/Alert";
|
||||
import LicenseRequired from "@ee/components/LicenseRequired";
|
||||
import TeamAvailabilityScreen from "@ee/components/team/availability/TeamAvailabilityScreen";
|
||||
@@ -14,6 +15,7 @@ import Shell from "@components/Shell";
|
||||
import Avatar from "@components/ui/Avatar";
|
||||
|
||||
export function TeamAvailabilityPage() {
|
||||
const { t } = useLocale();
|
||||
const router = useRouter();
|
||||
|
||||
const [errorMessage, setErrorMessage] = useState("");
|
||||
@@ -54,11 +56,7 @@ export function TeamAvailabilityPage() {
|
||||
{!!errorMessage && <Alert className="-mt-24 border" severity="error" title={errorMessage} />}
|
||||
{isLoading && <Loader />}
|
||||
{isFreeUser ? (
|
||||
<Alert
|
||||
className="-mt-24 border"
|
||||
severity="warning"
|
||||
title="This is a pro feature. Upgrade to pro to see your team's availability."
|
||||
/>
|
||||
<Alert className="-mt-24 border" severity="warning" title={t("pro_feature_teams")} />
|
||||
) : (
|
||||
TeamAvailability
|
||||
)}
|
||||
|
||||
@@ -157,11 +157,7 @@ function WorkflowPage() {
|
||||
}>
|
||||
<LicenseRequired>
|
||||
{isFreeUser ? (
|
||||
<Alert
|
||||
className="border "
|
||||
severity="warning"
|
||||
title="This is a pro feature. Upgrade to pro to automate your event notifications and reminders with workflows."
|
||||
/>
|
||||
<Alert className="border " severity="warning" title={t("pro_feature_workflows")} />
|
||||
) : (
|
||||
<>
|
||||
{isAllDataLoaded ? (
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useSession } from "next-auth/react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Alert } from "@calcom/ui/Alert";
|
||||
import LicenseRequired from "@ee/components/LicenseRequired";
|
||||
import { NewWorkflowButton } from "@ee/components/workflows/NewWorkflowButton";
|
||||
import WorkflowList from "@ee/components/workflows/WorkflowListPage";
|
||||
|
||||
import { useLocale } from "@lib/hooks/useLocale";
|
||||
import useMeQuery from "@lib/hooks/useMeQuery";
|
||||
import { trpc } from "@lib/trpc";
|
||||
|
||||
@@ -33,11 +33,7 @@ function WorkflowsPage() {
|
||||
) : (
|
||||
<>
|
||||
{isFreeUser ? (
|
||||
<Alert
|
||||
className="border "
|
||||
severity="warning"
|
||||
title="This is a pro feature. Upgrade to pro to automate your event notifications and reminders with workflows."
|
||||
/>
|
||||
<Alert className="border " severity="warning" title={t("pro_feature_workflows")} />
|
||||
) : (
|
||||
<WorkflowList workflows={data?.workflows} />
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user