Skip to content

Commit

Permalink
[dashboard] Add blue infobox to Plans and Teams page when usage-based…
Browse files Browse the repository at this point in the history
… is enabled
  • Loading branch information
jankeromnes committed Dec 2, 2022
1 parent 602920e commit a6793f7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/dashboard/src/settings/Plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,14 @@ export default function () {
return (
<div>
<PageWithSettingsSubMenu title="Plans" subtitle="Manage account usage and billing.">
{isUsageBasedBillingEnabled && (
<Alert type="message" className="mb-4">
Your account has been enabled for usage-based billing.{" "}
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
Learn how to upgrade
</a>
</Alert>
)}
<div className="w-full text-center">
<p className="text-xl text-gray-500">
You are currently using the{" "}
Expand Down
8 changes: 8 additions & 0 deletions components/dashboard/src/settings/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,14 @@ function AllTeams() {

return (
<div>
{isUsageBasedBillingEnabled && (
<Alert type="message" className="mb-4">
Your account has been enabled for usage-based billing.{" "}
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
Learn how to upgrade
</a>
</Alert>
)}
<div className="flex flex-row">
<div className="flex-grow ">
<h3 className="self-center">All Team Plans</h3>
Expand Down

0 comments on commit a6793f7

Please sign in to comment.