diff --git a/src/components/dashboard/Dashboard.tsx b/src/components/dashboard/Dashboard.tsx index 752c5a2..77e7145 100644 --- a/src/components/dashboard/Dashboard.tsx +++ b/src/components/dashboard/Dashboard.tsx @@ -13,6 +13,7 @@ import ShareButton from "@/components/ui/ShareButton"; import { getUserFootprints } from "@/lib/firebase/firestore"; import { exportToCSV, ActivityHistoryEntry } from "@/utils/exportCSV"; import { ArrowDownTrayIcon } from "@heroicons/react/24/outline"; +import EmptyState from "@/components/ui/EmptyState"; // Import EmptyState type SortOption = "newest" | "oldest" | "highest_impact" | "lowest_impact"; @@ -238,21 +239,16 @@ export default function Dashboard({ ); } - if (!dashboardData) { + if (!dashboardData || activityHistory.length === 0) { return ( -
- Start tracking your digital activities to see your carbon footprint. -
- -{description}
+ +