Removes team paywall for self-hosted (#7185)

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2023-02-17 23:00:19 +00:00
1 parent 4f99746f68
commit a3b26cd1e7
3 files changed
+18 -10

No files matched your search

+5 -5
View File
@@ -1,9 +1,9 @@
import type { ReactNode } from "react";
import { classNames } from "@calcom/lib";
import { useHasPaidPlan } from "@calcom/lib/hooks/useHasPaidPlan";
import { IS_SELF_HOSTED } from "@calcom/lib/constants";
import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import isCalcom from "@calcom/lib/isCalcom";
import { EmptyScreen } from "@calcom/ui";
import { FiUsers } from "@calcom/ui/components/icon";
@@ -33,13 +33,13 @@ export function UpgradeTip({
isParentLoading?: ReactNode;
}) {
const { t } = useLocale();
const { isLoading, hasPaidPlan } = useHasPaidPlan();
const { isLoading, hasTeamPlan } = useHasTeamPlan();
if (hasPaidPlan) return children;
if (hasTeamPlan) return children;
if (isParentLoading || isLoading) return <>{isParentLoading}</>;
if (!isCalcom)
if (IS_SELF_HOSTED)
return (
<EmptyScreen
Icon={FiUsers}