@@ -3,13 +3,11 @@ import {
3
3
Button ,
4
4
AboutModal as PFAboutModal ,
5
5
TextContent ,
6
- TextList ,
7
- TextListItem ,
8
6
ButtonVariant ,
9
7
} from '@patternfly/react-core' ;
10
8
import { GIT_SHA , VERSION , SERVICE_LABELS } from '../config/standalone' ;
11
9
import redHatLogo from '../images/Logo-Red_Hat-OpenShift_Container_Platform-B-Reverse-RGB.png' ;
12
- import { Api } from 'facet-lib' ;
10
+ import { Api , DetailList , DetailItem } from 'facet-lib' ;
13
11
14
12
const { getVersions, handleApiError } = Api ;
15
13
@@ -58,18 +56,21 @@ const AboutModal: React.FC<AboutModalProps> = ({ isOpen, onClose }) => {
58
56
brandImageAlt = "Assisted Installer Logo"
59
57
>
60
58
< TextContent >
61
- < TextList component = "dl" >
62
- < TextListItem component = "dt" > Assisted Installer UI version</ TextListItem >
63
- < TextListItem component = "dd" >
64
- { VERSION } { GIT_SHA ? `(${ GIT_SHA } )` : '' }
65
- </ TextListItem >
66
- { Object . keys ( versions ) . map ( ( version ) => (
67
- < >
68
- < TextListItem component = "dt" > { SERVICE_LABELS [ version ] || version } </ TextListItem >
69
- < TextListItem component = "dd" > { versions [ version ] } </ TextListItem >
70
- </ >
71
- ) ) }
72
- </ TextList >
59
+ < DetailList >
60
+ < >
61
+ < DetailItem
62
+ title = "Assisted Installer UI version"
63
+ value = { `${ VERSION } ${ GIT_SHA ? `(${ GIT_SHA } )` : '' } ` }
64
+ />
65
+ { Object . keys ( versions ) . map ( ( version ) => (
66
+ < DetailItem
67
+ key = { version }
68
+ title = { SERVICE_LABELS [ version ] || version }
69
+ value = { versions [ version ] }
70
+ />
71
+ ) ) }
72
+ </ >
73
+ </ DetailList >
73
74
</ TextContent >
74
75
</ PFAboutModal >
75
76
) ;
0 commit comments