File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/app/(public)/repos/[language]/_components Expand file tree Collapse file tree 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';
22import { emojify } from '@twuni/emojify' ;
33import { GoIssueOpened , GoRepoForked , GoStar } from 'react-icons/go' ;
44import { ReportButton } from './report-button' ;
5+ import { cn } from '@/lib/utils' ;
56
67const MAX_DESCRIPTION_LENGTH = 100 ;
78const MAX_TOPICS_DISPLAY = 3 ;
@@ -82,10 +83,12 @@ export function RepoCard({ repo }: RepoCardProps) {
8283 href = { `https://github.com/topics/${ topic } ` }
8384 target = "_blank"
8485 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'
8689 ? 'bg-hacktoberfest-light-green text-hacktoberfest-dark-green'
8790 : 'bg-hacktoberfest-deep-pink text-hacktoberfest-light-pink'
88- } ` }
91+ ) }
8992 >
9093 { topic }
9194 </ a >
You can’t perform that action at this time.
0 commit comments