add dev settings
This commit is contained in:
1 parent
e610acb9c7
commit
6c51fc91b4
2 files changed
+42
No files matched your search
@@ -0,0 +1,37 @@
|
|||||||
|
import Box from "@mui/material/Box";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import ConfigBox from "../../Components/ConfigBox";
|
||||||
|
// Utils
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import Link from "../../Components/Link";
|
||||||
|
|
||||||
|
const SettingsDev = (isAdmin, HEADER_SX) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
if (!isAdmin) return null;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ConfigBox>
|
||||||
|
<Box>
|
||||||
|
<Typography
|
||||||
|
component="h1"
|
||||||
|
variant="h2"
|
||||||
|
>
|
||||||
|
{t("settingsDev")}
|
||||||
|
</Typography>
|
||||||
|
<Typography sx={HEADER_SX}>{t("settingsDevDescription")}</Typography>
|
||||||
|
</Box>
|
||||||
|
<Box>
|
||||||
|
<Link
|
||||||
|
level="secondary"
|
||||||
|
label={t("settingsDevViewJobQueueDetails")}
|
||||||
|
url="/queue"
|
||||||
|
external={false}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</ConfigBox>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default SettingsDev;
|
||||||
@@ -8,6 +8,7 @@ import SettingsPagespeed from "./SettingsPagespeed";
|
|||||||
import SettingsDemoMonitors from "./SettingsDemoMonitors";
|
import SettingsDemoMonitors from "./SettingsDemoMonitors";
|
||||||
import SettingsAbout from "./SettingsAbout";
|
import SettingsAbout from "./SettingsAbout";
|
||||||
import SettingsEmail from "./SettingsEmail";
|
import SettingsEmail from "./SettingsEmail";
|
||||||
|
import SettingsDev from "./SettingsDev";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
// Utils
|
// Utils
|
||||||
import { settingsValidation } from "../../Validation/validation";
|
import { settingsValidation } from "../../Validation/validation";
|
||||||
@@ -208,6 +209,10 @@ const Settings = () => {
|
|||||||
emailPasswordHasBeenReset={emailPasswordHasBeenReset}
|
emailPasswordHasBeenReset={emailPasswordHasBeenReset}
|
||||||
setEmailPasswordHasBeenReset={setEmailPasswordHasBeenReset}
|
setEmailPasswordHasBeenReset={setEmailPasswordHasBeenReset}
|
||||||
/>
|
/>
|
||||||
|
<SettingsDev
|
||||||
|
isAdmin={isAdmin}
|
||||||
|
HEADER_SX={HEADING_SX}
|
||||||
|
/>
|
||||||
<SettingsAbout />
|
<SettingsAbout />
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
|
|||||||
Reference in new issue
Block a user