The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix TS error
Steven Tey88adba2f9187
diff --git a/apps/web/ui/program-marketplace/external/marketplace-external-home-page.tsx b/apps/web/ui/program-marketplace/external/marketplace-external-home-page.tsxindex 996de2e57e..d8b36c54a8 100644--- a/apps/web/ui/program-marketplace/external/marketplace-external-home-page.tsx+++ b/apps/web/ui/program-marketplace/external/marketplace-external-home-page.tsx@@ -14,7 +14,7 @@ export async function MarketplaceExternalHomePage() {<div className="-mx-4 -mt-8 px-2 sm:-mx-6 lg:-mx-8"><FeaturedProgramsprograms={summary.featuredPrograms}- showStatus={false}+ externalMarketplace/></div><MarketplaceCategoriesSection />@@ -24,7 +24,7 @@ export async function MarketplaceExternalHomePage() {title={row.title}viewAllHref={row.viewAllHref}showViewAllCard={row.showViewAllCard}- showStatus={false}+ externalMarketplaceprograms={summary.categories[row.key] ?? summary[row.key]}/>))}diff --git a/apps/web/ui/program-marketplace/featured-program-card.tsx b/apps/web/ui/program-marketplace/featured-program-card.tsxindex 24eb3460b6..fe948eb870 100644--- a/apps/web/ui/program-marketplace/featured-program-card.tsx+++ b/apps/web/ui/program-marketplace/featured-program-card.tsx@@ -39,11 +39,11 @@ export function getFeaturedCardBackground(index: number) {export function FeaturedProgramCard({program,- showStatus = true,+ externalMarketplace = false,colorIndex = 0,}: {program: NetworkProgramProps;- showStatus?: boolean;+ externalMarketplace?: boolean;colorIndex?: number;}) {const router = useRouter();@@ -77,7 +77,9 @@ export function FeaturedProgramCard({className="size-12 rounded-full border-4 border-neutral-100 sm:border sm:border-black/5"/>- {showStatus ? <ProgramStatusBadge program={program} /> : null}+ {!externalMarketplace ? (+ <ProgramStatusBadge program={program} />+ ) : null}</div><div className="flex flex-col pt-4 sm:mt-auto sm:pt-10">diff --git a/apps/web/ui/program-marketplace/featured-programs.tsx b/apps/web/ui/program-marketplace/featured-programs.tsxindex c8ac44b354..ee3bcc63fe 100644--- a/apps/web/ui/program-marketplace/featured-programs.tsx+++ b/apps/web/ui/program-marketplace/featured-programs.tsx@@ -17,14 +17,14 @@ import {const FEATURED_PROGRAMS_API_PATH = "/api/network/programs?featured=true";type FeaturedProgramsProps = {- showStatus?: boolean;+ externalMarketplace?: boolean;} & (| { programs: NetworkProgramProps[]; apiPath?: never }| { apiPath?: string; programs?: never });export function FeaturedPrograms({- showStatus = true,+ externalMarketplace = false,...props}: FeaturedProgramsProps) {const apiPath =@@ -55,7 +55,7 @@ export function FeaturedPrograms({<CarouselItem key={program.id} className="basis-full"><FeaturedProgramCardprogram={program}- showStatus={showStatus}+ externalMarketplace={externalMarketplace}colorIndex={index}/></CarouselItem>diff --git a/apps/web/ui/program-marketplace/marketplace-program-row.tsx b/apps/web/ui/program-marketplace/marketplace-program-row.tsxindex 5b87e9af8b..c6d90f50af 100644--- a/apps/web/ui/program-marketplace/marketplace-program-row.tsx+++ b/apps/web/ui/program-marketplace/marketplace-program-row.tsx@@ -14,7 +14,7 @@ type MarketplaceProgramRowProps = {title: string;viewAllHref: string;showViewAllCard?: boolean;- showStatus?: boolean;+ externalMarketplace?: boolean;variant?: "default" | "home";programs?: NetworkProgramProps[];apiPath?: string;@@ -55,7 +55,7 @@ export function MarketplaceProgramRow({title,viewAllHref,showViewAllCard = false,- showStatus = true,+ externalMarketplace = false,programs,}: MarketplaceProgramRowProps) {const carouselItemClassName = "pl-0 basis-[310px] sm:basis-[419px]";@@ -94,7 +94,7 @@ export function MarketplaceProgramRow({><MarketplaceProgramCardprogram={program}- showStatus={showStatus}+ externalMarketplace={externalMarketplace}className={cardClassName}/></CarouselItem>