Skip to content

Commit 4f1bdf1

Browse files
committed
chore: generate
1 parent 472695c commit 4f1bdf1

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

  • packages/console/app/src/routes/workspace/[id]

packages/console/app/src/routes/workspace/[id]/index.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,19 @@ export default function () {
4343
</span>
4444
<Show when={userInfo()?.isAdmin}>
4545
<span data-slot="billing-info">
46-
<Show when={billingInfo()?.customerID} fallback={
47-
<button
48-
data-color="primary"
49-
data-size="sm"
50-
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
51-
onClick={onClickCheckout}
52-
>
53-
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
54-
</button>
55-
}>
46+
<Show
47+
when={billingInfo()?.customerID}
48+
fallback={
49+
<button
50+
data-color="primary"
51+
data-size="sm"
52+
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
53+
onClick={onClickCheckout}
54+
>
55+
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
56+
</button>
57+
}
58+
>
5659
<span data-slot="balance">
5760
Current balance <b>${balance()}</b>
5861
</span>

0 commit comments

Comments
 (0)