diff --git a/packages/console/app/src/component/workspace/billing-section.tsx b/packages/console/app/src/component/workspace/billing-section.tsx index 57316e20..fa7126c7 100644 --- a/packages/console/app/src/component/workspace/billing-section.tsx +++ b/packages/console/app/src/component/workspace/billing-section.tsx @@ -174,11 +174,18 @@ export function BillingSection() {
- -

- You have ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} remaining in - your account. You can continue using the API with your remaining balance. -

+ + We'll load $20 (+$1.23 processing fee) and reload it when it reaches $5.

+ } + > +

+ You have ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} remaining in + your account. You can continue using the API with your remaining balance. +

+

diff --git a/packages/console/app/src/component/workspace/payment-section.tsx b/packages/console/app/src/component/workspace/payment-section.tsx index 7be51a58..826ec7a5 100644 --- a/packages/console/app/src/component/workspace/payment-section.tsx +++ b/packages/console/app/src/component/workspace/payment-section.tsx @@ -95,7 +95,6 @@ export function PaymentSection() { } }} data-slot="receipt-button" - style="cursor: pointer;" > view diff --git a/packages/console/app/src/routes/workspace/[id].tsx b/packages/console/app/src/routes/workspace/[id].tsx index 68a706d5..ec21126c 100644 --- a/packages/console/app/src/routes/workspace/[id].tsx +++ b/packages/console/app/src/routes/workspace/[id].tsx @@ -1,8 +1,4 @@ import "./[id].css" -import { Billing } from "@opencode/console-core/billing.js" -import { query, useParams, createAsync } from "@solidjs/router" -import { Show } from "solid-js" -import { withActor } from "~/context/auth.withActor" import { MonthlyLimitSection } from "~/component/workspace/monthly-limit-section" import { NewUserSection } from "~/component/workspace/new-user-section" import { BillingSection } from "~/component/workspace/billing-section" @@ -10,17 +6,7 @@ import { PaymentSection } from "~/component/workspace/payment-section" import { UsageSection } from "~/component/workspace/usage-section" import { KeySection } from "~/component/workspace/key-section" -const getBillingInfo = query(async (workspaceID: string) => { - "use server" - return withActor(async () => { - return await Billing.get() - }, workspaceID) -}, "billing.get") - export default function () { - const params = useParams() - const balanceInfo = createAsync(() => getBillingInfo(params.id)) - return (

@@ -38,10 +24,7 @@ export default function () { - - {/**/} - - +