diff --git a/packages/features/tips/UpgradeTip.tsx b/packages/features/tips/UpgradeTip.tsx index 6c7cf3c89c..ae8475fcf1 100644 --- a/packages/features/tips/UpgradeTip.tsx +++ b/packages/features/tips/UpgradeTip.tsx @@ -3,10 +3,10 @@ import type { ReactNode } from "react"; import { classNames } from "@calcom/lib"; import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan"; import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { useGetTheme } from "@calcom/lib/hooks/useTheme"; import { trpc } from "@calcom/trpc"; export function UpgradeTip({ - dark, title, description, background, @@ -16,7 +16,6 @@ export function UpgradeTip({ children, plan, }: { - dark?: boolean; title: string; description: string; /* overwrite EmptyScreen text */ @@ -28,9 +27,11 @@ export function UpgradeTip({ isParentLoading?: ReactNode; plan: "team" | "enterprise"; }) { + const { activeTheme } = useGetTheme(); const { t } = useLocale(); const { isPending, hasTeamPlan } = useHasTeamPlan(); const { data } = trpc.viewer.teams.getUpgradeable.useQuery(); + const imageSrc = `${background}${activeTheme === "dark" ? "-dark" : ""}.jpg`; const hasEnterprisePlan = false; //const { isPending , hasEnterprisePlan } = useHasEnterprisePlan(); @@ -47,19 +48,17 @@ export function UpgradeTip({ <>
- + {title}
-

{t(title)}

-

- {t(description)} -

+

{t(title)}

+

{t(description)}

{buttons}