diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index ebc21a1..7d7b3cc 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -1,44 +1,23 @@ "use client"; -import { TrendingUp, BookOpen, Flame, RefreshCw } from "lucide-react"; +import { TrendingUp, BookOpen, Flame } from "lucide-react"; import Link from "next/link"; import { useDashboard } from "@/lib/hooks/useDashboard"; import { BillCard } from "@/components/shared/BillCard"; import { WelcomeBanner } from "@/components/shared/WelcomeBanner"; -import { adminAPI } from "@/lib/api"; -import { useState } from "react"; import { useAuthStore } from "@/stores/authStore"; export default function DashboardPage() { - const { data, isLoading, refetch } = useDashboard(); - const [polling, setPolling] = useState(false); + const { data, isLoading } = useDashboard(); const token = useAuthStore((s) => s.token); - const triggerPoll = async () => { - setPolling(true); - try { - await adminAPI.triggerPoll(); - setTimeout(() => { refetch(); setPolling(false); }, 3000); - } catch { setPolling(false); } - }; - return (
- Your personalized Congressional activity feed -
-+ Your personalized Congressional activity feed +