chore: generate
This commit is contained in:
@@ -43,16 +43,19 @@ export default function () {
|
|||||||
</span>
|
</span>
|
||||||
<Show when={userInfo()?.isAdmin}>
|
<Show when={userInfo()?.isAdmin}>
|
||||||
<span data-slot="billing-info">
|
<span data-slot="billing-info">
|
||||||
<Show when={billingInfo()?.customerID} fallback={
|
<Show
|
||||||
<button
|
when={billingInfo()?.customerID}
|
||||||
data-color="primary"
|
fallback={
|
||||||
data-size="sm"
|
<button
|
||||||
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
|
data-color="primary"
|
||||||
onClick={onClickCheckout}
|
data-size="sm"
|
||||||
>
|
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
|
||||||
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
|
onClick={onClickCheckout}
|
||||||
</button>
|
>
|
||||||
}>
|
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
|
||||||
|
</button>
|
||||||
|
}
|
||||||
|
>
|
||||||
<span data-slot="balance">
|
<span data-slot="balance">
|
||||||
Current balance <b>${balance()}</b>
|
Current balance <b>${balance()}</b>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user