Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: added shimmer loading state

TzeYiinga4f905c9c814
diff --git a/studio/pages/project/[ref]/reports/api-overview.tsx b/studio/pages/project/[ref]/reports/api-overview.tsx
index 27202cb837d..d5c86f0b25a 100644
--- a/studio/pages/project/[ref]/reports/api-overview.tsx
+++ b/studio/pages/project/[ref]/reports/api-overview.tsx
@@ -21,11 +21,11 @@ import { useProjectSubscriptionQuery } from 'data/subscriptions/project-subscrip
import { useParams } from 'hooks'
import { isEqual } from 'lodash'
import { useRouter } from 'next/router'
+import ShimmerLine from 'components/ui/ShimmerLine'
export const ApiReport: NextPageWithLayout = () => {
const { ref: projectRef } = useParams()
const report = useApiReport()
- const router = useRouter()
const { data: subscription } = useProjectSubscriptionQuery({ projectRef })
const tier = subscription?.tier
@@ -53,7 +53,9 @@ export const ApiReport: NextPageWithLayout = () => {
disabled: (index > 0 && tier?.key === 'FREE') || (index > 1 && tier?.key !== 'PRO'),
}))}
/>
-
+ <div className="h-2 w-full">
+ <ShimmerLine active={report.isLoading} />
+ </div>
<ReportWidget
isLoading={report.isLoading}
params={report.params.totalRequests}