File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ import ChartBoxes from "./Components/ChartBoxes";
6
6
import ResponseTimeChart from "./Components/Charts/ResponseTimeChart" ;
7
7
import ResponseTable from "./Components/ResponseTable" ;
8
8
import UptimeStatusBoxes from "./Components/UptimeStatusBoxes" ;
9
+ import GenericFallback from "../../../Components/GenericFallback" ;
9
10
// MUI Components
10
- import { Stack } from "@mui/material" ;
11
+ import { Stack , Typography } from "@mui/material" ;
11
12
12
13
// Utils
13
14
import { useState } from "react" ;
@@ -77,6 +78,24 @@ const UptimeDetails = () => {
77
78
setRowsPerPage ( event . target . value ) ;
78
79
} ;
79
80
81
+ // Empty view, displayed when loading is complete and there are no checks
82
+ if ( ! monitorIsLoading && ! checksAreLoading && checksCount === 0 ) {
83
+ return (
84
+ < Stack gap = { theme . spacing ( 10 ) } >
85
+ < Breadcrumbs list = { BREADCRUMBS } />
86
+ < MonitorStatusHeader
87
+ path = { "uptime" }
88
+ isAdmin = { isAdmin }
89
+ shouldRender = { ! monitorIsLoading }
90
+ monitor = { monitor }
91
+ />
92
+ < GenericFallback >
93
+ < Typography > There is no history for this monitor yet.</ Typography >
94
+ </ GenericFallback >
95
+ </ Stack >
96
+ ) ;
97
+ }
98
+
80
99
return (
81
100
< Stack gap = { theme . spacing ( 10 ) } >
82
101
< Breadcrumbs list = { BREADCRUMBS } />
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ const UptimeMonitors = () => {
112
112
if ( networkError ) {
113
113
return (
114
114
< GenericFallback >
115
- { " " }
116
115
< Typography
117
116
variant = "h1"
118
117
marginY = { theme . spacing ( 4 ) }
@@ -135,7 +134,6 @@ const UptimeMonitors = () => {
135
134
/>
136
135
) ;
137
136
}
138
- console . log ( { isLoading } ) ;
139
137
140
138
return (
141
139
< Stack
You can’t perform that action at this time.
0 commit comments