@@ -26,7 +26,9 @@ import {
2626} from "@patternfly/react-core" ;
2727import React , { useMemo , useState } from "react" ;
2828
29+ import { CardEmptyState } from "../../../core/components/CardEmptyState" ;
2930import MigrationDonutChart from "../../../core/components/MigrationDonutChart" ;
31+ import { REPORT_CARD_EMPTY_STATE_TITLES } from "./constants" ;
3032import {
3133 dashboardCard ,
3234 storageCardOverflowHidden ,
@@ -36,7 +38,6 @@ import {
3638 storageExportSectionTitle ,
3739 storageFlexFullWidth ,
3840 storageMenuToggleMinWidth ,
39- storageNoDataContainer ,
4041 storageTotalsNote ,
4142} from "./styles" ;
4243
@@ -408,7 +409,9 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
408409 { ! isExportMode || ! exportAllViews ? (
409410 viewMode === "vmCountByDiskType" ? (
410411 diskTypeChartData . length === 0 ? (
411- < div className = { storageNoDataContainer } > No Data Available</ div >
412+ < CardEmptyState
413+ title = { REPORT_CARD_EMPTY_STATE_TITLES . diskTypes }
414+ />
412415 ) : (
413416 < >
414417 < div className = { storageChartWrapper } >
@@ -491,6 +494,7 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
491494 itemsPerRow = { Math . ceil ( sharedDisksChartData . length / 2 ) }
492495 labelFontSize = { 18 }
493496 marginLeft = "52%"
497+ emptyStateTitle = { REPORT_CARD_EMPTY_STATE_TITLES . storage }
494498 tooltipLabelFormatter = { ( { datum, percent } ) =>
495499 `${ datum . countDisplay } \n${ percent . toFixed ( 1 ) } %`
496500 }
@@ -516,6 +520,7 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
516520 itemsPerRow = { Math . min ( Math . ceil ( chartData . length / 2 ) , 2 ) }
517521 legendWidth = { 420 }
518522 labelFontSize = { 14 }
523+ emptyStateTitle = { REPORT_CARD_EMPTY_STATE_TITLES . storage }
519524 tooltipLabelFormatter = { ( { datum, percent } ) =>
520525 `${ datum . countDisplay } \n${ percent . toFixed ( 1 ) } %`
521526 }
@@ -611,6 +616,7 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
611616 ) }
612617 legendWidth = { 420 }
613618 labelFontSize = { 14 }
619+ emptyStateTitle = { REPORT_CARD_EMPTY_STATE_TITLES . storage }
614620 tooltipLabelFormatter = { ( { datum, percent } ) =>
615621 `${ datum . countDisplay } \n${ percent . toFixed ( 1 ) } %`
616622 }
@@ -635,6 +641,7 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
635641 ) }
636642 legendWidth = { 420 }
637643 labelFontSize = { 14 }
644+ emptyStateTitle = { REPORT_CARD_EMPTY_STATE_TITLES . storage }
638645 tooltipLabelFormatter = { ( { datum, percent } ) =>
639646 `${ datum . countDisplay } \n${ percent . toFixed ( 1 ) } %`
640647 }
@@ -656,6 +663,7 @@ export const StorageOverview: React.FC<StorageOverviewProps> = ({
656663 itemsPerRow = { Math . ceil ( sharedDisksChartData . length / 2 ) }
657664 labelFontSize = { 18 }
658665 marginLeft = "52%"
666+ emptyStateTitle = { REPORT_CARD_EMPTY_STATE_TITLES . storage }
659667 tooltipLabelFormatter = { ( { datum, percent } ) =>
660668 `${ datum . countDisplay } \n${ percent . toFixed ( 1 ) } %`
661669 }
0 commit comments