diff --git a/src/components/TopicDetail/TopicDetail.tsx b/src/components/TopicDetail/TopicDetail.tsx index 769eb11a1..e97cbb3bc 100644 --- a/src/components/TopicDetail/TopicDetail.tsx +++ b/src/components/TopicDetail/TopicDetail.tsx @@ -336,6 +336,10 @@ export function TopicDetail(props: TopicDetailProps) { return resource.topicIds.includes(normalizedTopicId); }); + const hasPaidScrimbaLinks = paidResourcesForTopic.some( + (resource) => resource?.url?.toLowerCase().indexOf('scrimba') !== -1, + ); + return (
+ {hasPaidScrimbaLinks && ( +
+
+ + + Scrimba is offering{' '} + 20% off on + all courses for roadmap.sh users. + +
+
+ )} + {showPaidResourceDisclaimer && ( {