Skip to content

Commit

Permalink
temporary Features cell
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko committed Nov 28, 2023
1 parent 15fcd0a commit 68f1556
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import { Td, Tr } from '@patternfly/react-table';
import { PowerStateCellRenderer } from './components/PowerStateCellRenderer';
import { VmResourceLinkRenderer } from './components/VmResourceLinkRenderer';
import { VMCellProps, VmData } from './components';
import { getVmTemplate } from './utils';
import { getOpenShiftFeatureMap, getVmTemplate } from './utils';

const cellRenderers: Record<string, React.FC<VMCellProps>> = {
name: VmResourceLinkRenderer,
status: PowerStateCellRenderer,
template: ({ data }) => <TableCell>{getVmTemplate(data?.vm)}</TableCell>,
features: ({ data }) => <TableCell>{JSON.stringify(getOpenShiftFeatureMap(data?.vm))}</TableCell>,
};

const renderTd = ({ resourceData, resourceFieldId, resourceFields }: RenderTdProps) => {
Expand Down

0 comments on commit 68f1556

Please sign in to comment.