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.

Empty state tweaks

Tim Wilson586ee57d1345
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-list.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-list.tsx
index 7f28dd4878..769efacba6 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-list.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-list.tsx
@@ -52,8 +52,20 @@ export function BountyList() {
<>
{BountySheet}
<AnimatedEmptyState
- title="No bounties found"
- description="No bounties have been created for this program yet."
+ title="No bounties active"
+ description={
+ <>
+ This program doesn't have any active bounties.{" "}
+ <a
+ href="https://dub.co/help/article/bounties"
+ target="_blank"
+ className="hover:text-content-default underline sm:whitespace-nowrap"
+ >
+ Learn more about bounties
+ </a>
+ .
+ </>
+ }
cardContent={() => (
<>
<Trophy className="size-4 text-neutral-700" />
diff --git a/apps/web/ui/shared/animated-empty-state.tsx b/apps/web/ui/shared/animated-empty-state.tsx
index 0020f32a5f..2e8c234b13 100644
--- a/apps/web/ui/shared/animated-empty-state.tsx
+++ b/apps/web/ui/shared/animated-empty-state.tsx
@@ -18,7 +18,7 @@ export function AnimatedEmptyState({
className,
}: {
title: string;
- description: string;
+ description: ReactNode;
cardContent: ReactNode | ((index: number) => ReactNode);
addButton?: ReactNode;
pillContent?: string;