From c44c0a86c59f9816e468fabb9792811a225c95de Mon Sep 17 00:00:00 2001 From: dark Date: Fri, 13 Feb 2026 21:34:55 +0800 Subject: [PATCH] fix: resolve naming conflict between Activity type and icon --- frontend/react-shadcn/pc/src/pages/DashboardPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/react-shadcn/pc/src/pages/DashboardPage.tsx b/frontend/react-shadcn/pc/src/pages/DashboardPage.tsx index a1dc44f..2d8c3a9 100644 --- a/frontend/react-shadcn/pc/src/pages/DashboardPage.tsx +++ b/frontend/react-shadcn/pc/src/pages/DashboardPage.tsx @@ -1,5 +1,5 @@ import { useState, useEffect } from 'react' -import { Users, Zap, Activity, Database, Loader2 } from 'lucide-react' +import { Users, Zap, Activity as ActivityIcon, Database, Loader2 } from 'lucide-react' import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/Card' import { apiClient } from '@/services/api' import type { DashboardStats, Activity } from '@/types' @@ -90,7 +90,7 @@ export function DashboardPage() { title: '活跃用户', value: stats ? formatNumber(stats.activeUsers) : '-', change: calculateGrowth(stats?.activeUsers || 0), - icon: Activity, + icon: ActivityIcon, color: 'from-green-500 to-emerald-600', }, { @@ -230,7 +230,7 @@ export function DashboardPage() { { label: '添加用户', icon: Users, action: 'users' }, { label: '系统设置', icon: Zap, action: 'settings' }, { label: '数据备份', icon: Database, action: 'backup' }, - { label: '查看日志', icon: Activity, action: 'logs' }, + { label: '查看日志', icon: ActivityIcon, action: 'logs' }, ].map((item, index) => (