Continue to clean things up

This commit is contained in:
Owen
2026-02-10 18:30:01 -08:00
parent accc670411
commit 9711a0fb8e
6 changed files with 158 additions and 54 deletions

View File

@@ -21,7 +21,7 @@ type Props = {
export function PaidFeaturesAlert({ tiers }: Props) {
const t = useTranslations();
const { hasSaasSubscription, hasEnterpriseLicense } = usePaidStatus();
const { hasSaasSubscription, hasEnterpriseLicense, isActive } = usePaidStatus();
const { env } = useEnvContext();
if (env.flags.disableEnterpriseFeatures) {
@@ -35,7 +35,7 @@ export function PaidFeaturesAlert({ tiers }: Props) {
<CardContent className={bannerContentClassName}>
<div className={bannerRowClassName}>
<KeyRound className="size-4 shrink-0 text-primary" />
<span>{t("subscriptionRequiredToUse")}</span>
<span>{isActive ? t("mustUpgradeToUse") : t("subscriptionRequiredToUse")}</span>
</div>
</CardContent>
</Card>