fix: Fix teams helper image background color mode (#15918)

Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2024-07-26 10:25:39 +02:00
1 parent fbff4db2a6
commit 31e6b88951
1 file changed
+2 -2
+2 -2
View File
@@ -27,11 +27,11 @@ export function UpgradeTip({
isParentLoading?: ReactNode;
plan: "team" | "enterprise";
}) {
const { activeTheme } = useGetTheme();
const { resolvedTheme } = useGetTheme();
const { t } = useLocale();
const { isPending, hasTeamPlan } = useHasTeamPlan();
const { data } = trpc.viewer.teams.getUpgradeable.useQuery();
const imageSrc = `${background}${activeTheme === "dark" ? "-dark" : ""}.jpg`;
const imageSrc = `${background}${resolvedTheme === "dark" ? "-dark" : ""}.jpg`;
const hasEnterprisePlan = false;
//const { isPending , hasEnterprisePlan } = useHasEnterprisePlan();