mirror of
https://github.com/layer-systems/website.git
synced 2026-06-17 01:58:30 +02:00
Fix linting errors in dashboard components
Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { type NostrEvent } from '@nostrify/nostrify';
|
||||
import { useNostr } from '@nostrify/react';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user