feat: import mock users on landing page and loosen StatCard icon type definition
This commit is contained in:
@@ -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 showCurrency = label !== 'Transactions';
|
||||
return (
|
||||
|
||||
@@ -7,6 +7,8 @@ import HeroBackground3D from '@/components/ui/3d/HeroBackground3D';
|
||||
import AnimatedCounter from '@/components/ui/AnimatedCounter';
|
||||
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 { users } from '@/data/mockData';
|
||||
|
||||
|
||||
export default function LandingPage() {
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user