The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update bounty-info.tsx
Kiran K04ebc1e191e5
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-info.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-info.tsxindex 1f46eeb366..08071b215a 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-info.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-info.tsx@@ -9,7 +9,7 @@ export function BountyInfo() {const { bounty, loading } = useBounty();if (loading) {- return null;+ return <BountyInfoSkeleton />;}if (!bounty) {@@ -21,42 +21,59 @@ export function BountyInfo() {return (<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-6">- <div className="relative flex size-16 shrink-0 items-center justify-center rounded-lg bg-neutral-100 p-3 sm:size-[90px]">- {bounty && <BountyThumbnailImage bounty={bounty} />}+ <div className="relative flex size-20 shrink-0 items-center justify-center rounded-lg bg-neutral-100 p-3">+ <BountyThumbnailImage bounty={bounty} /></div>- {bounty && (- <div className="flex min-w-0 flex-1 flex-col gap-1.5">- <h3 className="truncate text-base font-semibold leading-6 text-neutral-900">- {bounty.name}- </h3>-- <div className="flex items-center space-x-2">- <CalendarDays className="size-4 shrink-0" />- <span className="text-sm font-medium text-neutral-500">- {formatDate(bounty.startsAt, { month: "short" })}- {" → "}- {bounty.endsAt- ? formatDate(bounty.endsAt, { month: "short" })- : "No end date"}- </span>- </div>+ <div className="flex min-w-0 flex-1 flex-col gap-1.5">+ <h3 className="truncate text-base font-semibold leading-6 text-neutral-900">+ {bounty.name}+ </h3>++ <div className="flex items-center space-x-2">+ <CalendarDays className="size-4 shrink-0" />+ <span className="text-sm font-medium text-neutral-500">+ {formatDate(bounty.startsAt, { month: "short" })}+ {" → "}+ {bounty.endsAt+ ? formatDate(bounty.endsAt, { month: "short" })+ : "No end date"}+ </span>+ </div>- <div className="flex items-center space-x-2">- <Users className="size-4 shrink-0" />- <div className="text-sm text-neutral-500">- <span className="font-medium text-neutral-700">- {totalSubmissions}- </span>{" "}- of{" "}- <span className="font-medium text-neutral-700">- {bounty.partners}- </span>{" "}- {pluralize("partner", bounty.partners ?? 0)} completed- </div>+ <div className="flex items-center space-x-2">+ <Users className="size-4 shrink-0" />+ <div className="text-sm text-neutral-500">+ <span className="font-medium text-neutral-700">+ {totalSubmissions}+ </span>{" "}+ of{" "}+ <span className="font-medium text-neutral-700">+ {bounty.partners}+ </span>{" "}+ {pluralize("partner", bounty.partners ?? 0)} completed</div></div>- )}+ </div>+ </div>+ );+}++function BountyInfoSkeleton() {+ return (+ <div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-6">+ <div className="relative flex size-20 shrink-0 items-center justify-center rounded-lg bg-neutral-100 p-3" />+ <div className="flex min-w-0 flex-1 flex-col gap-1.5">+ <div className="h-6 w-48 animate-pulse rounded-md bg-neutral-200" />+ <div className="flex items-center space-x-2">+ <div className="size-4 animate-pulse rounded bg-neutral-200" />+ <div className="h-5 w-32 animate-pulse rounded bg-neutral-200" />+ </div>+ <div className="flex items-center space-x-2">+ <div className="size-4 animate-pulse rounded bg-neutral-200" />+ <div className="h-5 w-48 animate-pulse rounded bg-neutral-200" />+ </div>+ </div></div>);}