diff --git a/frontend/src/app/dashboard/components/RequestHistory.tsx b/frontend/src/app/dashboard/components/RequestHistory.tsx index 6c751d5..acb40a5 100644 --- a/frontend/src/app/dashboard/components/RequestHistory.tsx +++ b/frontend/src/app/dashboard/components/RequestHistory.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { RefreshCw } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; @@ -39,7 +40,7 @@ export function RequestHistory() { return (
-
+
setQuery(e.target.value)} @@ -57,6 +58,10 @@ export function RequestHistory() { +
{filtered.map((r) => ( diff --git a/frontend/src/app/dashboard/page.tsx b/frontend/src/app/dashboard/page.tsx index 0253bf8..3d7c8ab 100644 --- a/frontend/src/app/dashboard/page.tsx +++ b/frontend/src/app/dashboard/page.tsx @@ -3,6 +3,7 @@ import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { toast } from "sonner"; +import { RefreshCw } from "lucide-react"; import { Card, CardContent, @@ -86,11 +87,8 @@ export default function DashboardPage() { try { const costsRes = await overseerApi.getCosts(); setRequestCosts(costsRes.data); - } catch { - /* ignore */ - } + } catch {} }; - const handleLogout = async () => { try { await authApi.logout(); @@ -98,13 +96,20 @@ export default function DashboardPage() { logout(); router.push("/login"); }; + const handleRefresh = () => { + loadWalletAndPending(); + loadCosts(); + }; if (isLoading) return
Loading...
; return (
-
+ @@ -137,10 +142,14 @@ export default function DashboardPage() {
-
+
+