From 65f6e83f11c82b0ec762e11f3392a80e614ee69a Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 1 Feb 2026 12:29:54 +0000
Subject: refactor: migrate trpc to the new react query integration mode
 (#2438)

* refactor: migrate trpc to the new react query integration mode

* more fixes

* more migrations

* upgrade trpc client
---
 apps/web/components/subscription/QuotaProgress.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'apps/web/components/subscription/QuotaProgress.tsx')

diff --git a/apps/web/components/subscription/QuotaProgress.tsx b/apps/web/components/subscription/QuotaProgress.tsx
index 525eae8f..b36baec3 100644
--- a/apps/web/components/subscription/QuotaProgress.tsx
+++ b/apps/web/components/subscription/QuotaProgress.tsx
@@ -1,7 +1,8 @@
 "use client";
 
 import { useTranslation } from "@/lib/i18n/client";
-import { api } from "@/lib/trpc";
+import { useTRPC } from "@/lib/trpc";
+import { useQuery } from "@tanstack/react-query";
 import { Database, HardDrive } from "lucide-react";
 
 import {
@@ -110,9 +111,11 @@ function QuotaProgressItem({
 }
 
 export function QuotaProgress() {
+  const api = useTRPC();
   const { t } = useTranslation();
-  const { data: quotaUsage, isLoading } =
-    api.subscriptions.getQuotaUsage.useQuery();
+  const { data: quotaUsage, isLoading } = useQuery(
+    api.subscriptions.getQuotaUsage.queryOptions(),
+  );
 
   if (isLoading) {
     return (
-- 
cgit v1.2.3-70-g09d2

