From 5ad940269f559c45047ea8bae52a4a264e9fdb49 Mon Sep 17 00:00:00 2001 From: rustmailer Date: Tue, 21 Apr 2026 20:34:54 +0800 Subject: [PATCH] Update index.tsx --- web/src/features/dashboard/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/features/dashboard/index.tsx b/web/src/features/dashboard/index.tsx index 49e9d22..9c35dd8 100644 --- a/web/src/features/dashboard/index.tsx +++ b/web/src/features/dashboard/index.tsx @@ -23,8 +23,6 @@ import { useTranslation } from 'react-i18next'; import { getToken } from '@/stores/authStore'; import { useNavigate } from '@tanstack/react-router'; import useMinimalAccountList from '@/hooks/use-minimal-account-list'; -import { Badge } from '@/components/ui/badge'; -import LongText from '@/components/long-text'; interface DailyActivity { date: string; @@ -108,7 +106,7 @@ export default function MailArchiveDashboard() { queryKey: ['dashboard-stats'], enabled: !!token, queryFn: get_dashboard_stats, - placeholderData: INITIAL_DASHBOARD_STATS, + initialData: INITIAL_DASHBOARD_STATS, }); const navigate = useNavigate();