From 1350a1a55af4c69ce7f71ab14ac18caa678e36c7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:56:10 +0000 Subject: [PATCH] Fix linting errors in dashboard components Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> --- src/hooks/useUserEvents.ts | 1 - src/hooks/useUserStats.ts | 1 - src/pages/Dashboard.tsx | 1 - 3 files changed, 3 deletions(-) diff --git a/src/hooks/useUserEvents.ts b/src/hooks/useUserEvents.ts index b3a7739..c2a8f66 100644 --- a/src/hooks/useUserEvents.ts +++ b/src/hooks/useUserEvents.ts @@ -1,4 +1,3 @@ -import { type NostrEvent } from '@nostrify/nostrify'; import { useNostr } from '@nostrify/react'; import { useQuery } from '@tanstack/react-query'; diff --git a/src/hooks/useUserStats.ts b/src/hooks/useUserStats.ts index de96f3b..b8592a5 100644 --- a/src/hooks/useUserStats.ts +++ b/src/hooks/useUserStats.ts @@ -27,7 +27,6 @@ export function useUserStats(pubkey: string | undefined) { const now = Math.floor(Date.now() / 1000); const weekAgo = now - 7 * 24 * 60 * 60; const monthAgo = now - 30 * 24 * 60 * 60; - const thirtyDaysAgo = now - 30 * 24 * 60 * 60; // Fetch user's posts const posts = await nostr.query( diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 5129fca..87dd2a3 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -2,7 +2,6 @@ import { useSeoMeta } from "@unhead/react"; import { DashboardLayout } from "@/components/DashboardLayout"; import { DashboardOverview } from "@/components/DashboardOverview"; import { useCurrentUser } from "@/hooks/useCurrentUser"; -import { Card, CardContent } from "@/components/ui/card"; import { Alert, AlertDescription } from "@/components/ui/alert"; import { Info } from "lucide-react";