File tree 1 file changed +5
-2
lines changed
src/app/(public)/repos/[language]/_components
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { RepoItem } from '@/types';
2
2
import { emojify } from '@twuni/emojify' ;
3
3
import { GoIssueOpened , GoRepoForked , GoStar } from 'react-icons/go' ;
4
4
import { ReportButton } from './report-button' ;
5
+ import { cn } from '@/lib/utils' ;
5
6
6
7
const MAX_DESCRIPTION_LENGTH = 100 ;
7
8
const MAX_TOPICS_DISPLAY = 3 ;
@@ -82,10 +83,12 @@ export function RepoCard({ repo }: RepoCardProps) {
82
83
href = { `https://github.com/topics/${ topic } ` }
83
84
target = "_blank"
84
85
rel = "noreferrer"
85
- className = { `badge inline px-3 py-0.5 h-auto ${ topic === 'hacktoberfest'
86
+ className = { cn (
87
+ 'badge inline px-3 py-0.5 h-auto' ,
88
+ topic === 'hacktoberfest'
86
89
? 'bg-hacktoberfest-light-green text-hacktoberfest-dark-green'
87
90
: 'bg-hacktoberfest-deep-pink text-hacktoberfest-light-pink'
88
- } ` }
91
+ ) }
89
92
>
90
93
{ topic }
91
94
</ a >
You can’t perform that action at this time.
0 commit comments