Always render commercial use banner placeholder

This commit is contained in:
Gregory Schier
2026-07-04 14:44:49 -07:00
parent 851d0a26f0
commit e52853cc2d
@@ -10,6 +10,7 @@ import { DismissibleBanner } from "./core/DismissibleBanner";
const COMMERCIAL_USE_SNOOZE_MS = 7 * 24 * 60 * 60 * 1000; const COMMERCIAL_USE_SNOOZE_MS = 7 * 24 * 60 * 60 * 1000;
const COMMERCIAL_USE_BANNER_MESSAGE = const COMMERCIAL_USE_BANNER_MESSAGE =
"Personal use of Yaak is free. If youre using Yaak at work, please purchase a license."; "Personal use of Yaak is free. If youre using Yaak at work, please purchase a license.";
const hiddenBanner = <span aria-hidden className="block h-0 w-0 shrink-0 overflow-hidden" />;
export function CommercialUseBanner({ export function CommercialUseBanner({
source, source,
@@ -55,7 +56,7 @@ export function CommercialUseBanner({
}, [setSnoozedAt, snoozed, source]); }, [setSnoozedAt, snoozed, source]);
if (!visible || isSnoozeLoading || (snoozed && !snoozeStartedRef.current)) { if (!visible || isSnoozeLoading || (snoozed && !snoozeStartedRef.current)) {
return null; return hiddenBanner;
} }
return ( return (