Skip to content

Commit 75f90ad

Browse files
committed
[dashboard] Add blue infobox to Plans and Teams page when usage-based is enabled
1 parent 2975e79 commit 75f90ad

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

components/dashboard/src/settings/Plans.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,14 @@ export default function () {
634634
return (
635635
<div>
636636
<PageWithSettingsSubMenu title="Plans" subtitle="Manage account usage and billing.">
637+
{isUsageBasedBillingEnabled && (
638+
<Alert type="message" className="mb-4">
639+
Your account has been enabled for usage-based billing.{" "}
640+
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
641+
Learn how to upgrade
642+
</a>
643+
</Alert>
644+
)}
637645
<div className="w-full text-center">
638646
<p className="text-xl text-gray-500">
639647
You are currently using the{" "}

components/dashboard/src/settings/Teams.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ function AllTeams() {
454454

455455
return (
456456
<div>
457+
{isUsageBasedBillingEnabled && (
458+
<Alert type="message" className="mb-4">
459+
Your account has been enabled for usage-based billing.{" "}
460+
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
461+
Learn how to upgrade
462+
</a>
463+
</Alert>
464+
)}
457465
<div className="flex flex-row">
458466
<div className="flex-grow ">
459467
<h3 className="self-center">All Team Plans</h3>

0 commit comments

Comments
 (0)