Added the status color to monitor utils.
This commit is contained in:
1 parent
3ddea2ef8b
commit
97a73a385a
2 files changed
+13
-9
No files matched your search
@@ -214,14 +214,7 @@ const Configure = () => {
|
||||
setIsNotificationModalOpen(false);
|
||||
};
|
||||
|
||||
const statusColor = {
|
||||
up: theme.palette.success.main,
|
||||
down: theme.palette.error.main,
|
||||
paused: theme.palette.error.main,
|
||||
pending: theme.palette.warning.main,
|
||||
};
|
||||
|
||||
const { determineState } = useMonitorUtils();
|
||||
const { determineState, statusColor } = useMonitorUtils();
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
|
||||
Reference in new issue
Block a user