diff --git a/.astro/settings.json b/.astro/settings.json index b81828642668..a284d735d377 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -3,6 +3,6 @@ "enabled": false }, "_variables": { - "lastUpdateCheck": 1727095669945 + "lastUpdateCheck": 1728161578172 } } \ No newline at end of file diff --git a/src/components/TopicDetail/TopicDetailLink.tsx b/src/components/TopicDetail/TopicDetailLink.tsx index 9d4b01978941..121347b2b8ab 100644 --- a/src/components/TopicDetail/TopicDetailLink.tsx +++ b/src/components/TopicDetail/TopicDetailLink.tsx @@ -29,6 +29,8 @@ type TopicDetailLinkProps = { export function TopicDetailLink(props: TopicDetailLinkProps) { const { url, onClick, type, title, isPaid = false } = props; + const linkType = type === 'opensource' ? 'OpenSource' : type; + return ( - {type === 'opensource' ? ( - <> - {url.includes('github') && 'GitHub'} - {url.includes('gitlab') && 'GitLab'} - - ) : ( - type - )} + {linkType} {title}