Skip to content

Commit fb0c140

Browse files
Frontend wide refactor
1 parent 5a7d8ae commit fb0c140

33 files changed

Lines changed: 1575 additions & 1282 deletions

frontend/app/dashboard/billing/page.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { useEffect, useMemo, useState } from "react";
3+
import { Suspense, useEffect, useMemo, useState } from "react";
44
import { useSearchParams } from "next/navigation";
55
import { createClient } from "@/lib/supabase/client";
66
import { CreditCard } from "lucide-react";
@@ -24,7 +24,7 @@ function formatDate(date: Date) {
2424
});
2525
}
2626

27-
export default function BillingPage() {
27+
function BillingPageContent() {
2828
const searchParams = useSearchParams();
2929
const [loading, setLoading] = useState(true);
3030
const [error, setError] = useState<string | null>(null);
@@ -259,3 +259,19 @@ export default function BillingPage() {
259259
</div>
260260
);
261261
}
262+
263+
export default function BillingPage() {
264+
return (
265+
<Suspense
266+
fallback={
267+
<div className="flex flex-1 flex-col px-4 py-8">
268+
<div className="mx-auto w-full max-w-2xl rounded-lg border border-border bg-card px-4 py-3 text-sm text-muted-foreground">
269+
Loading billing...
270+
</div>
271+
</div>
272+
}
273+
>
274+
<BillingPageContent />
275+
</Suspense>
276+
);
277+
}

0 commit comments

Comments
 (0)