Fix: Optionally show IP/URL of the monitor in status page
This commit is contained in:
1 parent
e7694afeba
commit
e8d636dcfd
11 files changed
+92
-8
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import Box from "@mui/material/Box";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import ConfigBox from "../../Components/ConfigBox";
|
||||
import Select from "../../Components/Inputs/Select";
|
||||
|
||||
// Utils
|
||||
import { useTheme } from "@emotion/react";
|
||||
import { PropTypes } from "prop-types";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const SettingsURL = ({ HEADING_SX, handleChange, statusURL }) => {
|
||||
const { t } = useTranslation();
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<ConfigBox>
|
||||
<Box>
|
||||
<Typography component="h1">{t("settingsURLTitle")}</Typography>
|
||||
<Typography sx={HEADING_SX}>{t("settingsURLDescription")}</Typography>
|
||||
</Box>
|
||||
<Stack gap={theme.spacing(20)}>
|
||||
<Select
|
||||
name="statusURL"
|
||||
label={t("settingsURLSelectTitle")}
|
||||
value={statusURL}
|
||||
onChange={handleChange}
|
||||
items={[
|
||||
{ _id: "enabled", name: "Enabled" },
|
||||
{ _id: "disabled", name: "Disabled" },
|
||||
]}
|
||||
></Select>
|
||||
</Stack>
|
||||
</ConfigBox>
|
||||
);
|
||||
};
|
||||
|
||||
SettingsURL.propTypes = {
|
||||
HEADING_SX: PropTypes.object,
|
||||
handleChange: PropTypes.func,
|
||||
statusURL: PropTypes.string,
|
||||
};
|
||||
|
||||
export default SettingsURL;
|
||||
Reference in new issue
Block a user