The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
display the Links to partners
Kiran K60446a270712
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/resources/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/resources/page-client.tsxindex f30d1ea375..78ccd2b18d 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/resources/page-client.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/resources/page-client.tsx@@ -5,17 +5,17 @@ import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";import { ResourceCard } from "@/ui/partners/resources/resource-card";import { ResourceSection } from "@/ui/partners/resources/resource-section";import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";-import { FileContent, FileZip2, Palette2, Post } from "@dub/ui/icons";-import { formatFileSize } from "@dub/utils";+import { FileContent, FileZip2, Link4, Palette2, Post } from "@dub/ui/icons";+import { formatFileSize, getApexDomain, GOOGLE_FAVICON_URL } from "@dub/utils";-const emptyStateIcons = [Post, Palette2, FileZip2];+const emptyStateIcons = [Post, Palette2, FileZip2, Link4];export function ResourcesPageClient() {const { resources, isLoading, isValidating } = useProgramResources();const isEmpty =!isLoading &&- ["logos", "colors", "files"].every(+ ["logos", "colors", "files", "links"].every((resource) => !resources?.[resource]?.length,);@@ -50,6 +50,7 @@ export function ResourcesPageClient() {))}</ResourceSection>)}+{(isLoading || !!resources?.colors?.length) && (<ResourceSectionresource="color"@@ -74,6 +75,36 @@ export function ResourcesPageClient() {))}</ResourceSection>)}++ {(isLoading || !!resources?.links?.length) && (+ <ResourceSection+ resource="link"+ title="Links"+ isLoading={isLoading}+ isValidating={isValidating}+ >+ {resources?.links?.map((link) => (+ <ResourceCard+ key={link.id}+ resourceType="link"+ icon={+ <div className="flex size-full items-center justify-center bg-neutral-50">+ <img+ src={`${GOOGLE_FAVICON_URL}${getApexDomain(link.url)}`}+ alt={link.name}+ className="size-6 rounded-full object-contain"+ />+ </div>+ }+ title={link.name}+ description={link.url}+ visitUrl={link.url}+ copyText={link.url}+ />+ ))}+ </ResourceSection>+ )}+{(isLoading || !!resources?.files?.length) && (<ResourceSectionresource="file"diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/resources/program-brand-assets/index.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/resources/program-brand-assets/index.tsxindex c69f0bd087..1d7af7518e 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/resources/program-brand-assets/index.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/resources/program-brand-assets/index.tsx@@ -184,7 +184,7 @@ export function ProgramBrandAssets() {<div className="flex size-full items-center justify-center bg-neutral-50"><imgsrc={`${GOOGLE_FAVICON_URL}${getApexDomain(link.url)}`}- alt="favicon"+ alt={link.name}className="size-6 rounded-full object-contain"/></div>