refactor: extract Fallback component into smaller reusable components

This commit is contained in:
karenvicent committed 2025-07-21 16:13:18 -04:00
1 parent 200a933647
commit 62f94cfb20
15 files changed
+365 -216

No files matched your search

+3 -6
View File
@@ -68,12 +68,9 @@ const Maintenance = () => {
if (isDataFetched && maintenanceWindows.length === 0) {
return (
<Fallback
title="maintenance window"
checks={[
"Mark your maintenance periods",
"Eliminate any misunderstandings",
"Stop sending alerts in maintenance windows",
]}
type="maintenanceWindow"
title={t("maintenanceWindow.fallback.title")}
checks={t("maintenanceWindow.fallback.checks", { returnObjects: true })}
link="/maintenance/create"
isAdmin={isAdmin}
/>