Implement monitor states for Pagespeed pages
This commit is contained in:
1 parent
b0fc2023d9
commit
4aa31f8f4d
7 files changed
+86
-87
No files matched your search
@@ -223,8 +223,6 @@ const MonitorTable = ({ isAdmin }) => {
|
||||
status: determineState(monitor),
|
||||
};
|
||||
|
||||
console.log(params);
|
||||
|
||||
return (
|
||||
<TableRow
|
||||
key={monitor._id}
|
||||
|
||||
@@ -20,6 +20,12 @@ const useUtils = () => {
|
||||
down: "Your site is down.",
|
||||
paused: "Pending...",
|
||||
};
|
||||
|
||||
const pagespeedStatusMsg = {
|
||||
up: "Live (collecting data)",
|
||||
down: "Inactive",
|
||||
paused: "Paused",
|
||||
};
|
||||
const statusStyles = {
|
||||
up: {
|
||||
backgroundColor: theme.palette.success.bg,
|
||||
@@ -47,6 +53,7 @@ const useUtils = () => {
|
||||
determineState,
|
||||
statusColor,
|
||||
statusMsg,
|
||||
pagespeedStatusMsg,
|
||||
statusStyles,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user