fix: show prompt if usage limit is exceeded

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-12 15:10:28 +01:00
parent e505c0ea45
commit 447b7668fd

View File

@@ -136,6 +136,22 @@ function Component() {
</LinkButton>
</Alert>
)}
{organization.subscriptionPeriodEventsCountExceededAt &&
organization.isActive && (
<Alert
title="Events limit exceeded"
description={`Your subscription has exceeded the limit on ${format(organization.subscriptionPeriodEventsCountExceededAt, 'PPP')}`}
>
<LinkButton
to="/$organizationId/billing"
params={{
organizationId: organizationId,
}}
>
Upgrade now
</LinkButton>
</Alert>
)}
<Outlet />
<SupporterPrompt />
</>