@@ -14,7 +14,7 @@ import {
1414 GridItem ,
1515} from '@patternfly/react-core' ;
1616import { css } from '@patternfly/react-styles' ;
17- import { sortable } from '@patternfly/react-table' ;
17+ import { sortable , Table as PFTable , Thead , Tr , Th , Tbody , Td } from '@patternfly/react-table' ;
1818import { Map as ImmutableMap , Set as ImmutableSet , fromJS } from 'immutable' ;
1919import * as _ from 'lodash' ;
2020import { useTranslation } from 'react-i18next' ;
@@ -484,56 +484,51 @@ export const InstallPlanPreview: React.FC<InstallPlanPreviewProps> = ({
484484 </ PaneBody >
485485 ) }
486486 { stepsByCSV . map ( ( steps ) => (
487- < div key = { steps [ 0 ] . resolving } className = "co-m-pane__body" >
487+ < PaneBody key = { steps [ 0 ] . resolving } >
488488 < SectionHeading text = { steps [ 0 ] . resolving } />
489- < div className = "co-table-container" >
490- < table className = "pf-v6-c-table pf-m-compact pf-m-border-rows" >
491- < thead className = "pf-v6-c-table__thead" >
492- < tr className = "pf-v6-c-table__tr" >
493- < th className = { componentsTableColumnClasses [ 0 ] } > { t ( 'olm~Name' ) } </ th >
494- < th className = { componentsTableColumnClasses [ 1 ] } > { t ( 'olm~Kind' ) } </ th >
495- < th className = { componentsTableColumnClasses [ 2 ] } > { t ( 'olm~Status' ) } </ th >
496- < th className = { componentsTableColumnClasses [ 3 ] } > { t ( 'olm~API version' ) } </ th >
497- </ tr >
498- </ thead >
499- < tbody className = "pf-v6-c-table__tbody" >
500- { steps . map ( ( step ) => (
501- < tr
502- key = { `${ referenceForStepResource ( step . resource ) } -${ step . resource . name } ` }
503- className = "pf-v6-c-table__tr"
504- >
505- < td className = { componentsTableColumnClasses [ 0 ] } >
506- { [ 'Present' , 'Created' ] . includes ( step . status ) ? (
507- < ResourceLink
508- kind = { referenceForStepResource ( step . resource ) }
509- namespace = { obj . metadata . namespace }
510- name = { step . resource . name }
511- title = { step . resource . name }
512- />
513- ) : (
514- < >
515- < ResourceIcon kind = { referenceForStepResource ( step . resource ) } />
516- < Button
517- type = "button"
518- onClick = { ( ) => installPlanPreviewModal ( { stepResource : step . resource } ) }
519- variant = "link"
520- >
521- { step . resource . name }
522- </ Button >
523- </ >
524- ) }
525- </ td >
526- < td className = { componentsTableColumnClasses [ 1 ] } > { step . resource . kind } </ td >
527- < td className = { componentsTableColumnClasses [ 2 ] } > { stepStatus ( step . status ) } </ td >
528- < td className = { componentsTableColumnClasses [ 3 ] } >
529- { apiVersionForReference ( referenceForStepResource ( step . resource ) ) }
530- </ td >
531- </ tr >
532- ) ) }
533- </ tbody >
534- </ table >
535- </ div >
536- </ div >
489+ < PFTable variant = "compact" borders >
490+ < Thead >
491+ < Tr >
492+ < Th className = { componentsTableColumnClasses [ 0 ] } > { t ( 'olm~Name' ) } </ Th >
493+ < Th className = { componentsTableColumnClasses [ 1 ] } > { t ( 'olm~Kind' ) } </ Th >
494+ < Th className = { componentsTableColumnClasses [ 2 ] } > { t ( 'olm~Status' ) } </ Th >
495+ < Th className = { componentsTableColumnClasses [ 3 ] } > { t ( 'olm~API version' ) } </ Th >
496+ </ Tr >
497+ </ Thead >
498+ < Tbody >
499+ { steps . map ( ( step ) => (
500+ < Tr key = { `${ referenceForStepResource ( step . resource ) } -${ step . resource . name } ` } >
501+ < Td className = { componentsTableColumnClasses [ 0 ] } >
502+ { [ 'Present' , 'Created' ] . includes ( step . status ) ? (
503+ < ResourceLink
504+ kind = { referenceForStepResource ( step . resource ) }
505+ namespace = { obj . metadata . namespace }
506+ name = { step . resource . name }
507+ title = { step . resource . name }
508+ />
509+ ) : (
510+ < >
511+ < ResourceIcon kind = { referenceForStepResource ( step . resource ) } />
512+ < Button
513+ type = "button"
514+ onClick = { ( ) => installPlanPreviewModal ( { stepResource : step . resource } ) }
515+ variant = "link"
516+ >
517+ { step . resource . name }
518+ </ Button >
519+ </ >
520+ ) }
521+ </ Td >
522+ < Td className = { componentsTableColumnClasses [ 1 ] } > { step . resource . kind } </ Td >
523+ < Td className = { componentsTableColumnClasses [ 2 ] } > { stepStatus ( step . status ) } </ Td >
524+ < Td className = { componentsTableColumnClasses [ 3 ] } >
525+ { apiVersionForReference ( referenceForStepResource ( step . resource ) ) }
526+ </ Td >
527+ </ Tr >
528+ ) ) }
529+ </ Tbody >
530+ </ PFTable >
531+ </ PaneBody >
537532 ) ) }
538533 </ >
539534 ) : (
0 commit comments