Skip to content

Commit 447b766

Browse files
committed
fix: show prompt if usage limit is exceeded
1 parent e505c0e commit 447b766

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

apps/start/src/routes/_app.$organizationId.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@ function Component() {
136136
</LinkButton>
137137
</Alert>
138138
)}
139+
{organization.subscriptionPeriodEventsCountExceededAt &&
140+
organization.isActive && (
141+
<Alert
142+
title="Events limit exceeded"
143+
description={`Your subscription has exceeded the limit on ${format(organization.subscriptionPeriodEventsCountExceededAt, 'PPP')}`}
144+
>
145+
<LinkButton
146+
to="/$organizationId/billing"
147+
params={{
148+
organizationId: organizationId,
149+
}}
150+
>
151+
Upgrade now
152+
</LinkButton>
153+
</Alert>
154+
)}
139155
<Outlet />
140156
<SupporterPrompt />
141157
</>

0 commit comments

Comments
 (0)