Skip to content

Commit 3c7d035

Browse files
committed
[dashboard] Temporarily disable selecting personal account for usage-based billing attribution
1 parent 12017a5 commit 3c7d035

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

components/dashboard/src/components/BillingAccountSelector.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function BillingAccountSelector(props: { onSelected?: () => void }) {
6262
<div>
6363
<p>Bill all my usage to:</p>
6464
<div className="mt-4 flex space-x-3">
65-
<SelectableCardSolid
65+
{/* <SelectableCardSolid
6666
className="w-36 h-32"
6767
title="(myself)"
6868
selected={
@@ -72,7 +72,13 @@ export function BillingAccountSelector(props: { onSelected?: () => void }) {
7272
onClick={() => setUsageAttributionTeam(undefined)}
7373
>
7474
<div className="flex-grow flex items-end p-1"></div>
75-
</SelectableCardSolid>
75+
</SelectableCardSolid> */}
76+
{teamsWithBillingEnabled.length === 0 && (
77+
<span>
78+
Please enable billing for one of your teams, or create a new team and enable billing for
79+
it.
80+
</span>
81+
)}
7682
{teamsWithBillingEnabled.map((t) => (
7783
<SelectableCardSolid
7884
className="w-36 h-32"

0 commit comments

Comments
 (0)