Skip to content

Commit f23f122

Browse files
committed
Show the scheduled tier in subscription panel
1 parent 6e58594 commit f23f122

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/src/app/profile/components/subscription-section.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface SubscriptionApiResponse {
2424
cancelAtPeriodEnd: boolean
2525
canceledAt: string | null
2626
tier?: number | null
27+
scheduledTier?: number | null
2728
}
2829
rateLimit?: {
2930
limited: boolean
@@ -123,6 +124,11 @@ function SubscriptionActive({
123124
Canceling
124125
</span>
125126
)}
127+
{subscription?.scheduledTier != null && (
128+
<span className="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-muted text-muted-foreground">
129+
Renewing at ${subscription.scheduledTier}/mo
130+
</span>
131+
)}
126132
</CardTitle>
127133
<a
128134
href={billingPortalUrl}

0 commit comments

Comments
 (0)