diff --git a/components/dashboard/Campaigns.tsx b/components/dashboard/Campaigns.tsx
index f0eae00..431bac5 100644
--- a/components/dashboard/Campaigns.tsx
+++ b/components/dashboard/Campaigns.tsx
@@ -191,17 +191,6 @@ export default function Campaigns({ siteId, dateRange, filters }: CampaignsProps
Build URL
- {showViewAll && (
-
- )}
@@ -268,9 +257,21 @@ export default function Campaigns({ siteId, dateRange, filters }: CampaignsProps
))}
- {Array.from({ length: emptySlots }).map((_, i) => (
-
- ))}
+ {showViewAll ? (
+
+ ) : (
+ Array.from({ length: emptySlots }).map((_, i) => (
+
+ ))
+ )}
) : (
diff --git a/components/dashboard/ContentStats.tsx b/components/dashboard/ContentStats.tsx
index c4129ad..21add44 100644
--- a/components/dashboard/ContentStats.tsx
+++ b/components/dashboard/ContentStats.tsx
@@ -96,22 +96,9 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain,
<>
-
-
- Content
-
- {showViewAll && (
-
- )}
-
+
+ Content
+
{(['top_pages', 'entry_pages', 'exit_pages'] as Tab[]).map((tab) => (
))}
- {Array.from({ length: emptySlots }).map((_, i) => (
-
- ))}
+ {showViewAll ? (
+
+ ) : (
+ Array.from({ length: emptySlots }).map((_, i) => (
+
+ ))
+ )}
>
) : (
diff --git a/components/dashboard/Locations.tsx b/components/dashboard/Locations.tsx
index 83d816f..5cc15d4 100644
--- a/components/dashboard/Locations.tsx
+++ b/components/dashboard/Locations.tsx
@@ -198,22 +198,9 @@ export default function Locations({ countries, cities, regions, geoDataLevel = '
<>
-
-
- Locations
-
- {showViewAll && (
-
- )}
-
+
+ Locations
+
{(['map', 'countries', 'regions', 'cities'] as Tab[]).map((tab) => (
))}
- {Array.from({ length: emptySlots }).map((_, i) => (
-
- ))}
+ {showViewAll ? (
+
setIsModalOpen(true)}
+ className="flex items-center justify-center gap-1.5 h-9 w-full text-xs font-medium text-neutral-400 dark:text-neutral-500 hover:text-brand-orange dark:hover:text-brand-orange transition-colors cursor-pointer rounded-lg px-2 -mx-2"
+ >
+ View all
+
+
+ ) : (
+ Array.from({ length: emptySlots }).map((_, i) => (
+
+ ))
+ )}
>
) : (