@@ -79,7 +79,6 @@ import ComplianceToolPopover from '../util/complianceToolsPopover'
79
79
import {
80
80
ARTEFACT_KIND ,
81
81
COMPLIANCE_TOOLS ,
82
- DEPENDENT_COMPONENT ,
83
82
features ,
84
83
fetchBomPopulate ,
85
84
SUMMARY_CATEGORISATIONS ,
@@ -1297,7 +1296,6 @@ const DependenciesTabHeader = React.memo(({
1297
1296
isComponentLoading,
1298
1297
componentRefs,
1299
1298
getSpecialComponentFeature,
1300
- componentType,
1301
1299
defaultSearchValue,
1302
1300
} ) => {
1303
1301
const searchParamContext = React . useContext ( SearchParamContext )
@@ -1328,15 +1326,18 @@ const DependenciesTabHeader = React.memo(({
1328
1326
</ FeatureDependent >
1329
1327
</ Grid >
1330
1328
< Grid item width = '18%' alignItems = 'center' display = 'flex' flexDirection = 'column' >
1331
- {
1332
- ( componentType !== DEPENDENT_COMPONENT ) & ! isComponentLoading
1333
- ? < SpecialComponentStatus
1329
+ < FeatureDependent
1330
+ requiredFeatures = { [ features . SPECIAL_COMPONENTS ] }
1331
+ childrenIfFeatureLoading = { < Skeleton width = '100%' /> } // explicitly set width as parent container is a flexbox
1332
+ >
1333
+ {
1334
+ isComponentLoading ? < Skeleton width = '100%' /> : < SpecialComponentStatus
1334
1335
component = { component }
1335
1336
componentRefs = { componentRefs }
1336
1337
specialComponentFeature = { getSpecialComponentFeature ( ) }
1337
1338
/>
1338
- : < Skeleton width = '100%' /> /* explicitly set width as parent container is a flexbox */
1339
- }
1339
+ }
1340
+ </ FeatureDependent >
1340
1341
</ Grid >
1341
1342
< Grid item width = '17%' display = 'flex' justifyContent = 'right' flexDirection = 'column' >
1342
1343
< DownloadBom
@@ -1355,7 +1356,6 @@ DependenciesTabHeader.propTypes = {
1355
1356
isComponentLoading : PropTypes . bool . isRequired ,
1356
1357
componentRefs : PropTypes . arrayOf ( PropTypes . object ) ,
1357
1358
getSpecialComponentFeature : PropTypes . func . isRequired ,
1358
- componentType : PropTypes . string ,
1359
1359
defaultSearchValue : PropTypes . string ,
1360
1360
}
1361
1361
0 commit comments