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.

Update page-client.tsx

Tim Wilson8946f9f0ebbc
diff --git a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/links/page-client.tsx b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/links/page-client.tsx
index 7ed8888e13..4253f031cd 100644
--- a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/links/page-client.tsx
+++ b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/links/page-client.tsx
@@ -83,7 +83,7 @@ export function ProgramLinksPageClient() {
</p>
</div>
) : loading ? (
- [...Array(3)].map((_, i) => <LinkCardSkeleton key={i} />)
+ <LinkCardSkeleton />
) : (
links?.map((link) => (
<PartnerLinkCard
@@ -102,15 +102,28 @@ export function ProgramLinksPageClient() {
function LinkCardSkeleton() {
return (
- <CardList.Card innerClassName="flex items-center justify-between gap-4 h-[66px]">
- <div className="flex min-w-0 items-center gap-3">
- <div className="relative hidden size-8 shrink-0 animate-pulse rounded-full bg-neutral-200 sm:flex" />
- <div className="flex min-w-0 flex-col gap-1.5">
- <div className="h-5 w-32 animate-pulse rounded-md bg-neutral-200" />
- <div className="h-4 w-48 animate-pulse rounded-md bg-neutral-200" />
+ <CardList.Card innerClassName="px-0 py-0" hoverStateEnabled={false}>
+ <div className="h-[33px] rounded-t-xl bg-neutral-50"></div>
+ <div className="p-4">
+ <div className="flex items-center justify-between gap-4">
+ <div className="flex min-w-0 items-center gap-3">
+ <div className="relative hidden size-11 shrink-0 animate-pulse rounded-full bg-neutral-200 sm:flex" />
+ <div className="flex min-w-0 flex-col gap-1.5">
+ <div className="h-6 w-32 animate-pulse rounded-md bg-neutral-200" />
+ <div className="h-4 w-48 animate-pulse rounded-md bg-neutral-200" />
+ </div>
+ </div>
+ <div className="h-7 w-16 animate-pulse rounded-md bg-neutral-200" />
+ </div>
+ <div className="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3">
+ {[...Array(3)].map((_, i) => (
+ <div
+ key={i}
+ className="h-[156px] rounded-lg border border-neutral-100"
+ />
+ ))}
</div>
</div>
- <div className="h-7 w-16 animate-pulse rounded-md bg-neutral-200" />
</CardList.Card>
);
}