feat: import mock users on landing page and loosen StatCard icon type definition

This commit is contained in:
sazzadulalambd
2026-06-22 17:40:15 +06:00
parent 4187c591ad
commit 65473392ea
2 changed files with 3 additions and 1 deletions

View File

@@ -998,7 +998,7 @@ function DashboardView({ stats, accounts, monthLabel = 'This Month' }: { stats:
); );
} }
function StatCard({ label, value, icon: Icon, color }: { label: string; value: number; icon: React.ElementType; color: string }) { function StatCard({ label, value, icon: Icon, color }: { label: string; value: number; icon: any; color: string }) {
const colors: Record<string, string> = { green: 'bg-green-50 text-green-600', red: 'bg-red-50 text-red-600', blue: 'bg-blue-50 text-blue-600', purple: 'bg-purple-50 text-purple-600', slate: 'bg-slate-100 text-slate-600' }; const colors: Record<string, string> = { green: 'bg-green-50 text-green-600', red: 'bg-red-50 text-red-600', blue: 'bg-blue-50 text-blue-600', purple: 'bg-purple-50 text-purple-600', slate: 'bg-slate-100 text-slate-600' };
const showCurrency = label !== 'Transactions'; const showCurrency = label !== 'Transactions';
return ( return (

View File

@@ -7,6 +7,8 @@ import HeroBackground3D from '@/components/ui/3d/HeroBackground3D';
import AnimatedCounter from '@/components/ui/AnimatedCounter'; import AnimatedCounter from '@/components/ui/AnimatedCounter';
import CardIcon3D from '@/components/ui/3d/CardIcon3D'; import CardIcon3D from '@/components/ui/3d/CardIcon3D';
import { Zap, ArrowRight, Bike, Wallet, Leaf, ShieldCheck, MapPin, Truck, ChevronRight, BarChart3, BatteryCharging, Clock, Activity } from 'lucide-react'; import { Zap, ArrowRight, Bike, Wallet, Leaf, ShieldCheck, MapPin, Truck, ChevronRight, BarChart3, BatteryCharging, Clock, Activity } from 'lucide-react';
import { users } from '@/data/mockData';
export default function LandingPage() { export default function LandingPage() {
const router = useRouter(); const router = useRouter();