@@ -7,13 +7,11 @@ type UsageTabProps = {
77 projectId : number | string
88 featureId : number
99 environmentId : number
10- hasCodeReferences : boolean
1110}
1211
1312const UsageTab : FC < UsageTabProps > = ( {
1413 environmentId,
1514 featureId,
16- hasCodeReferences,
1715 projectId,
1816} ) => {
1917 if ( ! projectId ) {
@@ -30,34 +28,32 @@ const UsageTab: FC<UsageTabProps> = ({
3028 />
3129 </ div >
3230 ) }
33- { hasCodeReferences && (
34- < FormGroup className = 'mb-4' >
35- < div className = 'd-flex align-items-center gap-2 mb-2' >
36- < h5 className = 'mb-0' > Code references</ h5 >
37- < span
38- className = 'chip chip--xs bg-primary text-white'
39- style = { { border : 'none' } }
40- >
41- New
42- </ span >
43- </ div >
44- < div className = 'text-muted mb-2' >
45- Code references allow you to track where feature flags are being
46- used within your code.{ ' ' }
47- < a
48- target = '_blank'
49- href = 'https://docs.flagsmith.com/managing-flags/code-references'
50- rel = 'noreferrer'
51- >
52- Learn more
53- </ a >
54- </ div >
55- < FeatureCodeReferencesContainer
56- featureId = { featureId }
57- projectId = { parseInt ( `${ projectId } ` ) }
58- />
59- </ FormGroup >
60- ) }
31+ < FormGroup className = 'mb-4' >
32+ < div className = 'd-flex align-items-center gap-2 mb-2' >
33+ < h5 className = 'mb-0' > Code references</ h5 >
34+ < span
35+ className = 'chip chip--xs bg-primary text-white'
36+ style = { { border : 'none' } }
37+ >
38+ New
39+ </ span >
40+ </ div >
41+ < div className = 'text-muted mb-2' >
42+ Code references allow you to track where feature flags are being used
43+ within your code.{ ' ' }
44+ < a
45+ target = '_blank'
46+ href = 'https://docs.flagsmith.com/managing-flags/code-references'
47+ rel = 'noreferrer'
48+ >
49+ Learn more
50+ </ a >
51+ </ div >
52+ < FeatureCodeReferencesContainer
53+ featureId = { featureId }
54+ projectId = { parseInt ( `${ projectId } ` ) }
55+ />
56+ </ FormGroup >
6157 </ >
6258 )
6359}
0 commit comments