Skip to content

Commit b73f401

Browse files
committed
Add beta label on usage left sidebar
1 parent 536a13d commit b73f401

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

components/dashboard/src/teams/TeamUsage.tsx

+24-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { ReactComponent as Spinner } from "../icons/Spinner.svg";
2424
import { ReactComponent as UsageIcon } from "../images/usage-default.svg";
2525
import { BillingMode } from "@gitpod/gitpod-protocol/lib/billing-mode";
2626
import { toRemoteURL } from "../projects/render-utils";
27+
import PillLabel from "../components/PillLabel";
2728

2829
function TeamUsage() {
2930
const { teams } = useContext(TeamsContext);
@@ -177,11 +178,29 @@ function TeamUsage() {
177178
{getBillingHistory()}
178179
</div>
179180
{!isLoading && (
180-
<div className="flex flex-col truncate">
181-
<div className="text-base text-gray-500">Total usage</div>
182-
<div className="flex text-lg text-gray-600 font-semibold">
183-
<CreditsSvg className="my-auto mr-1" />
184-
<span>{totalCreditsUsed} Credits</span>
181+
<div>
182+
<div className="flex flex-col truncate">
183+
<div className="text-base text-gray-500">Total usage</div>
184+
<div className="flex text-lg text-gray-600 font-semibold">
185+
<CreditsSvg className="my-auto mr-1" />
186+
<span>{totalCreditsUsed} Credits</span>
187+
</div>
188+
</div>
189+
<div className="flex flex-col truncate">
190+
<div className="text-sm text-gray-500">
191+
Usage is currently in{" "}
192+
<PillLabel
193+
type="warn"
194+
className="font-semibold mt-2 py-0.5 px-1 self-center"
195+
>
196+
Beta
197+
</PillLabel>{" "}
198+
</div>
199+
<div>
200+
<a href="#" className="gp-link">
201+
Send feedback
202+
</a>
203+
</div>
185204
</div>
186205
</div>
187206
)}

0 commit comments

Comments
 (0)