diff --git a/Client/src/Pages/Auth/Register/Register.jsx b/Client/src/Pages/Auth/Register/Register.jsx
index 77b3dd2fc..855cc3c54 100644
--- a/Client/src/Pages/Auth/Register/Register.jsx
+++ b/Client/src/Pages/Auth/Register/Register.jsx
@@ -107,18 +107,16 @@ const StepOne = ({ form, errors, onSubmit, onChange, onBack }) => {
/>
@@ -267,21 +265,19 @@ const StepThree = ({ form, errors, onSubmit, onChange, onBack }) => {
/>
-
+
.MuiStack-root:nth-of-type(1) {
height: var(--env-var-nav-bar-height);
diff --git a/Client/src/Pages/Incidents/IncidentTable/index.jsx b/Client/src/Pages/Incidents/IncidentTable/index.jsx
index 95230bb72..44a30decc 100644
--- a/Client/src/Pages/Incidents/IncidentTable/index.jsx
+++ b/Client/src/Pages/Incidents/IncidentTable/index.jsx
@@ -9,6 +9,8 @@ import {
Pagination,
PaginationItem,
Paper,
+ Typography,
+ Box,
} from "@mui/material";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
@@ -105,41 +107,55 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
return (
<>
-
-
-
-
- Monitor Name
- Status
- Date & Time
- Message
-
-
-
- {checks.map((check) => {
- const status = check.status === true ? "up" : "down";
-
- return (
-
- {monitors[check.monitorId]?.name}
-
-
-
-
- {new Date(check.createdAt).toLocaleString()}
-
- {check.statusCode}
+ {checks?.length === 0 && selectedMonitor === "0" ? (
+
+ No incidents recorded yet.
+
+ ) : checks?.length === 0 ? (
+
+
+ The monitor you have selected has no recorded incidents yet.
+
+
+ ) : (
+ <>
+
+
+
+
+ Monitor Name
+ Status
+ Date & Time
+ Message
- );
- })}
-
-
-
- {paginationComponent}
+
+
+ {checks.map((check) => {
+ const status = check.status === true ? "up" : "down";
+
+ return (
+
+ {monitors[check.monitorId]?.name}
+
+
+
+
+ {new Date(check.createdAt).toLocaleString()}
+
+ {check.statusCode}
+
+ );
+ })}
+
+
+
+ {paginationComponent}
+ >
+ )}
>
);
};
diff --git a/Client/src/Pages/Incidents/index.css b/Client/src/Pages/Incidents/index.css
index 1f176d470..286552d22 100644
--- a/Client/src/Pages/Incidents/index.css
+++ b/Client/src/Pages/Incidents/index.css
@@ -17,6 +17,12 @@
.incidents .MuiPagination-root {
background-color: var(--env-var-color-8);
}
+.incidents > .MuiBox-root {
+ background-color: var(--env-var-color-8);
+ border: solid 1px var(--env-var-color-6);
+ border-radius: var(--env-var-radius-1);
+ padding: 60px;
+}
/* remove later */
.incidents .MuiSelect-select {