@@ -5,10 +5,13 @@ import {
5
5
Button ,
6
6
Content ,
7
7
ContentVariants ,
8
+ DescriptionList ,
9
+ DescriptionListDescription ,
10
+ DescriptionListGroup ,
11
+ DescriptionListTerm ,
8
12
Popover ,
9
13
Spinner ,
10
14
} from '@patternfly/react-core' ;
11
- import { HelpIcon } from '@patternfly/react-icons' ;
12
15
import { Table , Tbody , Td , Th , Thead , Tr } from '@patternfly/react-table' ;
13
16
14
17
import { useAppSelector } from '../../../../../store/hooks' ;
@@ -34,51 +37,40 @@ const ActivationKeyInformation = (): JSX.Element => {
34
37
< >
35
38
{ isFetchingActivationKeyInfo && < Spinner size = 'lg' /> }
36
39
{ isSuccessActivationKeyInfo && (
37
- < Content >
38
- < Content component = { ContentVariants . dl } >
39
- < Content component = { ContentVariants . dt } > Name:</ Content >
40
- < Content component = { ContentVariants . dd } > { activationKey } </ Content >
41
- < Content component = { ContentVariants . dt } > Description:</ Content >
42
- < Content component = { ContentVariants . dd } >
40
+ < DescriptionList >
41
+ < DescriptionListGroup >
42
+ < DescriptionListTerm > Name</ DescriptionListTerm >
43
+ < DescriptionListDescription >
44
+ { activationKey }
45
+ </ DescriptionListDescription >
46
+ </ DescriptionListGroup >
47
+ < DescriptionListGroup >
48
+ < DescriptionListTerm > Description</ DescriptionListTerm >
49
+ < DescriptionListDescription >
43
50
{ activationKeyInfo ?. body ?. description || '' }
44
- </ Content >
45
- < Content component = { ContentVariants . dt } > Role:</ Content >
46
- < Content component = { ContentVariants . dd } >
51
+ </ DescriptionListDescription >
52
+ </ DescriptionListGroup >
53
+ < DescriptionListGroup >
54
+ < DescriptionListTerm > Role</ DescriptionListTerm >
55
+ < DescriptionListDescription >
47
56
{ activationKeyInfo ?. body ?. role || 'Not defined' }
48
- </ Content >
49
- < Content component = { ContentVariants . dt } > SLA:</ Content >
50
- < Content component = { ContentVariants . dd } >
57
+ </ DescriptionListDescription >
58
+ </ DescriptionListGroup >
59
+ < DescriptionListGroup >
60
+ < DescriptionListTerm > SLA</ DescriptionListTerm >
61
+ < DescriptionListDescription >
51
62
{ activationKeyInfo ?. body ?. serviceLevel || 'Not defined' }
52
- </ Content >
53
- < Content component = { ContentVariants . dt } > Usage:</ Content >
54
- < Content component = { ContentVariants . dd } >
63
+ </ DescriptionListDescription >
64
+ </ DescriptionListGroup >
65
+ < DescriptionListGroup >
66
+ < DescriptionListTerm > Usage</ DescriptionListTerm >
67
+ < DescriptionListDescription >
55
68
{ activationKeyInfo ?. body ?. usage || 'Not defined' }
56
- </ Content >
57
- < Content component = { ContentVariants . dt } >
58
- Additional repositories:
59
- < Popover
60
- bodyContent = {
61
- < Content >
62
- < Content >
63
- The core repositories for your operating system version
64
- are always enabled and do not need to be explicitly added
65
- to the activation key.
66
- </ Content >
67
- </ Content >
68
- }
69
- >
70
- < Button
71
- icon = { < HelpIcon /> }
72
- variant = 'plain'
73
- aria-label = 'About additional repositories'
74
- className = 'pf-v6-u-pl-sm pf-v6-u-pt-0 pf-v6-u-pb-0'
75
- />
76
- </ Popover >
77
- </ Content >
78
- < Content
79
- component = { ContentVariants . dd }
80
- className = 'pf-v6-u-display-flex pf-v6-u-align-items-flex-end'
81
- >
69
+ </ DescriptionListDescription >
70
+ </ DescriptionListGroup >
71
+ < DescriptionListGroup >
72
+ < DescriptionListTerm > Additional repositories</ DescriptionListTerm >
73
+ < DescriptionListDescription >
82
74
{ activationKeyInfo ?. body ?. additionalRepositories &&
83
75
activationKeyInfo ?. body ?. additionalRepositories ?. length > 0 ? (
84
76
< Popover
@@ -123,9 +115,9 @@ const ActivationKeyInformation = (): JSX.Element => {
123
115
) : (
124
116
'None'
125
117
) }
126
- </ Content >
127
- </ Content >
128
- </ Content >
118
+ </ DescriptionListDescription >
119
+ </ DescriptionListGroup >
120
+ </ DescriptionList >
129
121
) }
130
122
{ isErrorActivationKeyInfo && (
131
123
< Content >
0 commit comments