Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Comment out the FreePlanBanner component's rendering logic, returning null instead, to prevent display of trial information.

Bill Yang95a5853141b3
diff --git a/client/src/components/FreePlanBanner.tsx b/client/src/components/FreePlanBanner.tsx
index e088fa1df..3805ae87c 100644
--- a/client/src/components/FreePlanBanner.tsx
+++ b/client/src/components/FreePlanBanner.tsx
@@ -17,22 +17,23 @@ export function FreePlanBanner() {
};
if (subscription?.eventLimit === DEFAULT_EVENT_LIMIT) {
- return (
- <div className="mt-4 px-4 py-3 rounded-lg border border-blue-200 dark:border-blue-400/30 bg-blue-100/80 dark:bg-blue-900/20 text-sm flex gap-4 items-center">
- <div className="text-blue-700 dark:text-blue-300 flex items-center font-medium">
- <span>
- {t("Free plan: Using {used} of {limit} events", { used: formatNumber(subscription?.monthlyEventCount || 0), limit: formatNumber(subscription?.eventLimit || 0) })}
- </span>
- </div>
- {site.isOwner && (
- <Button variant="success" size="sm" asChild>
- <Link href="/subscribe">
- {t("Upgrade")} <ArrowRight className="ml-1 h-3 w-3" />
- </Link>
- </Button>
- )}
- </div>
- );
+ // return (
+ // <div className="mt-4 px-4 py-3 rounded-lg border border-blue-200 dark:border-blue-400/30 bg-blue-100/80 dark:bg-blue-900/20 text-sm flex gap-4 items-center">
+ // <div className="text-blue-700 dark:text-blue-300 flex items-center font-medium">
+ // <span>
+ // {t("Free plan: Using {used} of {limit} events", { used: formatNumber(subscription?.monthlyEventCount || 0), limit: formatNumber(subscription?.eventLimit || 0) })}
+ // </span>
+ // </div>
+ // {site.isOwner && (
+ // <Button variant="success" size="sm" asChild>
+ // <Link href="/subscribe">
+ // {t("Upgrade")} <ArrowRight className="ml-1 h-3 w-3" />
+ // </Link>
+ // </Button>
+ // )}
+ // </div>
+ // );
+ return null;
}
return null;