Feat: Uptime Monitor Filters
This commit is contained in:
1 parent
3dc77d6e27
commit
cad81be0f5
1 file changed
+17
-17
@@ -27,6 +27,23 @@ import { useTranslation } from "react-i18next";
|
|||||||
* @returns {JSX.Element} The rendered Filter component.
|
* @returns {JSX.Element} The rendered Filter component.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const typeOptions = [
|
||||||
|
{ value: "http", label: "HTTP(S)" },
|
||||||
|
{ value: "ping", label: "Ping" },
|
||||||
|
{ value: "docker", label: "Docker" },
|
||||||
|
{ value: "port", label: "Port" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const statusOptions = [
|
||||||
|
{ value: "Up", label: "Up" },
|
||||||
|
{ value: "Down", label: "Down" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const stateOptions = [
|
||||||
|
{ value: "Active", label: "Active" },
|
||||||
|
{ value: "Paused", label: "Paused" },
|
||||||
|
];
|
||||||
|
|
||||||
const Filter = ({
|
const Filter = ({
|
||||||
selectedTypes,
|
selectedTypes,
|
||||||
setSelectedTypes,
|
setSelectedTypes,
|
||||||
@@ -76,23 +93,6 @@ const Filter = ({
|
|||||||
);
|
);
|
||||||
}, [selectedState, selectedTypes, selectedStatus]);
|
}, [selectedState, selectedTypes, selectedStatus]);
|
||||||
|
|
||||||
const typeOptions = [
|
|
||||||
{ value: "http", label: "HTTP(S)" },
|
|
||||||
{ value: "ping", label: "Ping" },
|
|
||||||
{ value: "docker", label: "Docker" },
|
|
||||||
{ value: "port", label: "Port" },
|
|
||||||
];
|
|
||||||
|
|
||||||
const statusOptions = [
|
|
||||||
{ value: "Up", label: "Up" },
|
|
||||||
{ value: "Down", label: "Down" },
|
|
||||||
];
|
|
||||||
|
|
||||||
const stateOptions = [
|
|
||||||
{ value: "Active", label: "Active" },
|
|
||||||
{ value: "Paused", label: "Paused" },
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in new issue
Block a user