-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(THEEDGE-3359): Add federated module to show edge image informati…
…on (#1909) Implements https://issues.redhat.com/browse/THEEDGE-3359. --------- Signed-off-by: Adelia Ferreira <[email protected]> Co-authored-by: Georgy Karataev <[email protected]>
- Loading branch information
1 parent
627eb61
commit 62b5a97
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
import React from 'react'; | ||
|
||
import GeneralInformation from '../GeneralInfo/GeneralInformation'; | ||
import useFeatureFlag from '../../Utilities/useFeatureFlag'; | ||
export { default as TextInputModal } from '../GeneralInfo/TextInputModal'; | ||
|
||
const GeneralInfoTab = (props) => { | ||
return <GeneralInformation {...props} />; | ||
const enableEdgeImageDetails = useFeatureFlag( | ||
'edgeParity.inventory-system-detail' | ||
); | ||
const enableEdgeInventoryListDetails = useFeatureFlag( | ||
'edgeParity.inventory-list' | ||
); | ||
return ( | ||
<GeneralInformation | ||
{...props} | ||
showImageDetails={ | ||
enableEdgeImageDetails && enableEdgeInventoryListDetails | ||
} | ||
/> | ||
); | ||
}; | ||
|
||
export default GeneralInfoTab; |