@@ -6,7 +6,7 @@ import { VscGithub } from 'react-icons/vsc';
6
6
import { useLocation , useNavigate } from 'react-router-dom' ;
7
7
8
8
import { CATEGORY_ICONS } from '../../../data' ;
9
- import { Report , Repository , ScoreType } from '../../../types' ;
9
+ import { Report , Repository , RepositoryKind , ScoreType } from '../../../types' ;
10
10
import ElementWithTooltip from '../../common/ElementWithTooltip' ;
11
11
import ExternalLink from '../../common/ExternalLink' ;
12
12
import RoundScore from '../../common/RoundScore' ;
@@ -77,19 +77,21 @@ const RepositoriesList = (props: Props) => {
77
77
< div className = "d-none d-md-block" >
78
78
< div className = { `d-flex flex-row h4 fw-bold mb-2 ${ styles . titleWrapper } ` } >
79
79
< div className = "text-truncate" > { repo . name } </ div >
80
- < ElementWithTooltip
81
- className = "lh-1 ms-3"
82
- element = {
83
- < small >
84
- < FaCrown className = "text-warning" />
85
- </ small >
86
- }
87
- tooltipWidth = { 210 }
88
- tooltipClassName = { styles . tooltipMessage }
89
- tooltipMessage = { < div > Project's primary repository.</ div > }
90
- visibleTooltip
91
- active
92
- />
80
+ { repo . kind === RepositoryKind . Primary && (
81
+ < ElementWithTooltip
82
+ className = "lh-1 ms-3"
83
+ element = {
84
+ < small >
85
+ < FaCrown className = "text-warning" />
86
+ </ small >
87
+ }
88
+ tooltipWidth = { 210 }
89
+ tooltipClassName = { styles . tooltipMessage }
90
+ tooltipMessage = { < div > Project's primary repository.</ div > }
91
+ visibleTooltip
92
+ active
93
+ />
94
+ ) }
93
95
{ getAnchorLink ( repo ) }
94
96
</ div >
95
97
< ExternalLink href = { repo . url } >
@@ -104,9 +106,11 @@ const RepositoriesList = (props: Props) => {
104
106
< ExternalLink href = { repo . url } className = { `fw-bold text-truncate ${ styles . repoName } ` } >
105
107
< div className = "text-truncate" > { repo . name } </ div >
106
108
</ ExternalLink >
107
- < small >
108
- < FaCrown className = "d-block d-md-none text-warning ms-2" />
109
- </ small >
109
+ { repo . kind === RepositoryKind . Primary && (
110
+ < small >
111
+ < FaCrown className = "d-block d-md-none text-warning ms-2" />
112
+ </ small >
113
+ ) }
110
114
{ getAnchorLink ( repo ) }
111
115
</ div >
112
116
</ div >
0 commit comments