Feat: Empty View Component

This commit is contained in:
Aryaman Kumar Sharma committed 2025-02-27 11:00:36 +05:30
1 parent f4021e8cd5
commit 3650a6162a
2 files changed
+31 -2

No files matched your search

@@ -35,6 +35,7 @@ const ChartBoxes = ({
const denominator =
totalUpChecks + totalDownChecks > 0 ? totalUpChecks + totalDownChecks : 1;
const groupedUptimePercentage = (totalUpChecks / denominator) * 100;
const noIncidentsMessage = "Great. No Incidents, yet!";
return (
<Stack
@@ -96,7 +97,7 @@ const ChartBoxes = ({
<ChartBox
icon={<IncidentsIcon />}
header="Incidents"
noDataMessage="Great. No Incidents, yet!"
noDataMessage={noIncidentsMessage}
isEmpty={monitor?.groupedDownChecks?.length === 0}
>
<Stack width={"100%"}>