diff options
| author | Jay V <[email protected]> | 2025-09-19 13:29:04 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-09-19 13:29:04 -0400 |
| commit | c7fbf9de441a0f58e1acc83f0d39a7d22884ede0 (patch) | |
| tree | dc033c5113583560624acc0a29ae1ceb8f1020f5 /packages/console/app/src/routes | |
| parent | d88c17dad0d87a593656f83a103848b0f50fedd4 (diff) | |
| download | opencode-c7fbf9de441a0f58e1acc83f0d39a7d22884ede0.tar.gz opencode-c7fbf9de441a0f58e1acc83f0d39a7d22884ede0.zip | |
ignore: zen
Diffstat (limited to 'packages/console/app/src/routes')
| -rw-r--r-- | packages/console/app/src/routes/workspace/[id].tsx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/packages/console/app/src/routes/workspace/[id].tsx b/packages/console/app/src/routes/workspace/[id].tsx index 68a706d5d..ec21126c8 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 ( <div data-page="workspace-[id]"> <section data-component="title-section"> @@ -38,10 +24,7 @@ export default function () { <NewUserSection /> <KeySection /> <BillingSection /> - <Show when={true}> - {/*<Show when={balanceInfo()?.reload}>*/} - <MonthlyLimitSection /> - </Show> + <MonthlyLimitSection /> <UsageSection /> <PaymentSection /> </div> |
