integrate in to settings
This commit is contained in:
1 parent
93a77f4831
commit
6443203ed3
2 files changed
+4
-4
No files matched your search
@@ -15,7 +15,6 @@ import { ConfigBox } from "../../Monitors/styled";
|
|||||||
import Radio from "../../../Components/Inputs/Radio";
|
import Radio from "../../../Components/Inputs/Radio";
|
||||||
import TextInput from "../../../Components/Inputs/TextInput";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import Field from "../../../Components/Inputs/Field";
|
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { Box, Stack, Typography, Button } from "@mui/material";
|
import { Box, Stack, Typography, Button } from "@mui/material";
|
||||||
import Field from "../../Components/Inputs/Field";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import Link from "../../Components/Link";
|
import Link from "../../Components/Link";
|
||||||
import Select from "../../Components/Inputs/Select";
|
import Select from "../../Components/Inputs/Select";
|
||||||
import { logger } from "../../Utils/Logger";
|
import { logger } from "../../Utils/Logger";
|
||||||
@@ -240,13 +240,14 @@ const Settings = ({ isAdmin }) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<Field
|
<TextInput
|
||||||
id="ttl"
|
id="ttl"
|
||||||
label="The days you want to keep monitoring history."
|
label="The days you want to keep monitoring history."
|
||||||
optionalLabel="0 for infinite"
|
optionalLabel="0 for infinite"
|
||||||
value={form.ttl}
|
value={form.ttl}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.ttl}
|
error={errors.ttl ? true : false}
|
||||||
|
helperText={errors.ttl}
|
||||||
/>
|
/>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>Clear all stats. This is irreversible.</Typography>
|
<Typography>Clear all stats. This is irreversible.</Typography>
|
||||||
|
|||||||
Reference in new issue
Block a user