From 95a87b3f7cda938ed8ede0aa021a7de06b5f4aa6 Mon Sep 17 00:00:00 2001 From: Uche44 Date: Mon, 29 Jun 2026 18:35:49 +0100 Subject: [PATCH] [Improvement] Add an empty state to the "Recent Pools" dropdown when the list is empty --- .../components/dashboard/dashboard-header.tsx | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/frontend/components/dashboard/dashboard-header.tsx b/frontend/components/dashboard/dashboard-header.tsx index 266a76d..49ec697 100644 --- a/frontend/components/dashboard/dashboard-header.tsx +++ b/frontend/components/dashboard/dashboard-header.tsx @@ -165,7 +165,7 @@ export function DashboardHeader() { )} - {address && recentPools.length > 0 && ( + {address && ( - Recent Pools - - {recentPools.map((pool) => ( - - - {pool.name} - - - {pool.type} - - - {formatRelativeTime(new Date(pool.visitedAt))} - - - - - ))} + Recent Pools + + {recentPools.length === 0 ? ( +
+ No recent pools yet +
+ ) : ( + recentPools.map((pool) => ( + + + {pool.name} + + + {pool.type} + + + {formatRelativeTime(new Date(pool.visitedAt))} + + + + + )) + )}
)}