From 24a2da024f8c7af411d46af07327a96d21b2c1ef Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 14 Oct 2024 15:55:40 +0100 Subject: [PATCH] Add team sponsor --- src/components/PageSponsor.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/PageSponsor.tsx b/src/components/PageSponsor.tsx index cdc21b5ec..392cf0c02 100644 --- a/src/components/PageSponsor.tsx +++ b/src/components/PageSponsor.tsx @@ -59,7 +59,7 @@ export function PageSponsor(props: PageSponsorProps) { currentPath.startsWith('/guides') || currentPath.startsWith('/videos') || currentPath.startsWith('/account') || - currentPath.startsWith('/team') + currentPath.startsWith('/team/') ) { return; } @@ -127,6 +127,8 @@ export function PageSponsor(props: PageSponsorProps) { const { url, title, imageUrl, description, company, gaLabel } = sponsor; + const isRoadmapAd = title.toLowerCase() === 'advertise with us!'; + return ( {title} {description} - Partner Content - - Partner Content - + {!isRoadmapAd && ( + <> + + Partner Content + + + Partner Content + + + )} );