Compare commits

..

1 Commits

Author SHA1 Message Date
Arik Chakma
2683ed5076 fix: bcrypt open source link 2024-10-05 10:53:14 +06:00
2 changed files with 10 additions and 5 deletions

View File

@@ -3,6 +3,6 @@
"enabled": false
},
"_variables": {
"lastUpdateCheck": 1728161578172
"lastUpdateCheck": 1727095669945
}
}

View File

@@ -29,8 +29,6 @@ type TopicDetailLinkProps = {
export function TopicDetailLink(props: TopicDetailLinkProps) {
const { url, onClick, type, title, isPaid = false } = props;
const linkType = type === 'opensource' ? 'OpenSource' : type;
return (
<a
href={url}
@@ -40,11 +38,18 @@ export function TopicDetailLink(props: TopicDetailLinkProps) {
>
<span
className={cn(
'mr-2 inline-block rounded px-1.5 py-0.5 text-xs capitalize no-underline',
'mr-2 inline-block rounded px-1.5 py-0.5 text-xs uppercase no-underline',
(isPaid ? paidLinkTypes[type] : linkTypes[type]) || 'bg-gray-200',
)}
>
{linkType}
{type === 'opensource' ? (
<>
{url.includes('github') && 'GitHub'}
{url.includes('gitlab') && 'GitLab'}
</>
) : (
type
)}
</span>
{title}
</a>