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.

Misc. empty state improvements

Tim Wilson58f53a81c378
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/network-empty-state.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/network-empty-state.tsx
index cc18cfdab3..f7f91bee9b 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/network-empty-state.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/network-empty-state.tsx
@@ -46,12 +46,14 @@ export function NetworkEmptyState({
</div>
)}
addButton={
- <Button
- type="button"
- text="Clear all filters"
- className="h-9 rounded-lg"
- onClick={onClearAllFilters}
- />
+ isFiltered || isStarred ? (
+ <Button
+ type="button"
+ text="Clear all filters"
+ className="h-9 rounded-lg"
+ onClick={onClearAllFilters}
+ />
+ ) : undefined
}
/>
);
diff --git a/apps/web/ui/shared/animated-empty-state.tsx b/apps/web/ui/shared/animated-empty-state.tsx
index 68ad9f0b12..0bceeefc07 100644
--- a/apps/web/ui/shared/animated-empty-state.tsx
+++ b/apps/web/ui/shared/animated-empty-state.tsx
@@ -44,7 +44,7 @@ export function AnimatedEmptyState({
style={{ "--scroll": "-50%" } as CSSProperties}
className="animate-infinite-scroll-y flex flex-col [animation-duration:10s]"
>
- {[...Array(6)].map((_, idx) => (
+ {[...Array(cardCount * 2)].map((_, idx) => (
<Card key={idx} className={cardClassName}>
{typeof cardContent === "function"
? cardContent(idx % cardCount)