= ({ className )} > - {capacity} {suffix} + {prefix} {makeCapacityInBold ? {capacity} : capacity}{' '} + {suffix}
); }; type TotalCapacityBodyProps = { capacity: string; - suffix: string; + prefix?: string; + suffix?: string; className?: string; + makeCapacityInBold?: boolean; }; diff --git a/packages/shared/dashboards/breakdown-card/breakdown-dropdown.tsx b/packages/shared/dashboards/breakdown-card/breakdown-dropdown.tsx index 8e0856cac..2121c9796 100644 --- a/packages/shared/dashboards/breakdown-card/breakdown-dropdown.tsx +++ b/packages/shared/dashboards/breakdown-card/breakdown-dropdown.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import { K8sResourceCommon } from '@openshift-console/dynamic-plugin-sdk'; import { SelectOption, SelectGroup, @@ -20,6 +21,18 @@ export const getSelectOptions = ( )); +export const getPVCSelectOptions = ( + selectItems: K8sResourceCommon[] +): React.ReactElement[] => + selectItems.map((namespace) => { + const { name } = namespace.metadata; + return ( +