Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

rearrange

Steven Teyed0ef306e2dc
diff --git a/apps/web/ui/stats/index.tsx b/apps/web/ui/stats/index.tsx
index 96f245239a..32243517bf 100644
--- a/apps/web/ui/stats/index.tsx
+++ b/apps/web/ui/stats/index.tsx
@@ -91,6 +91,8 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {
fetcher,
);
+ const isPublicStatsPage = basePath.startsWith("/stats");
+
return (
<StatsContext.Provider
value={{
@@ -109,9 +111,10 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {
<Clicks />
<div className="grid grid-cols-1 gap-5 md:grid-cols-2">
<Locations />
- <TopLinks />
+ {!isPublicStatsPage && <TopLinks />}
<Devices />
<Referer />
+ {isPublicStatsPage && <TopLinks />}
</div>
</div>
</div>