settings page
This commit is contained in:
1 parent
4d273a6dce
commit
8571ccea78
1 file changed
+12
-11
@@ -1,6 +1,7 @@
|
|||||||
import { BasePage, ConfigBox, TextLink } from "@/Components/design-elements";
|
import { BasePage, ConfigBox, TextLink } from "@/Components/design-elements";
|
||||||
import { Autocomplete, Select, Dialog, SwitchComponent } from "@/Components/inputs";
|
import { Autocomplete, Select, Dialog, SwitchComponent } from "@/Components/inputs";
|
||||||
import { logger } from "@/Utils/logger";
|
import { logger } from "@/Utils/logger";
|
||||||
|
import { LAYOUT } from "@/Utils/Theme/constants";
|
||||||
import {
|
import {
|
||||||
Stack,
|
Stack,
|
||||||
useTheme,
|
useTheme,
|
||||||
@@ -299,7 +300,7 @@ export const SettingsPage = () => {
|
|||||||
component="form"
|
component="form"
|
||||||
onSubmit={form.handleSubmit(onSubmit, onError)}
|
onSubmit={form.handleSubmit(onSubmit, onError)}
|
||||||
>
|
>
|
||||||
<Stack gap={theme.spacing(8)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.settings.form.timezone.title")}
|
title={t("pages.settings.form.timezone.title")}
|
||||||
subtitle={t("pages.settings.form.timezone.description")}
|
subtitle={t("pages.settings.form.timezone.description")}
|
||||||
@@ -322,7 +323,7 @@ export const SettingsPage = () => {
|
|||||||
title={t("pages.settings.form.ui.title")}
|
title={t("pages.settings.form.ui.title")}
|
||||||
subtitle={t("pages.settings.form.ui.description")}
|
subtitle={t("pages.settings.form.ui.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack gap={theme.spacing(8)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<Select
|
<Select
|
||||||
value={mode}
|
value={mode}
|
||||||
onChange={handleModeChange}
|
onChange={handleModeChange}
|
||||||
@@ -550,7 +551,7 @@ export const SettingsPage = () => {
|
|||||||
title={t("pages.settings.form.email.title")}
|
title={t("pages.settings.form.email.title")}
|
||||||
subtitle={t("pages.settings.form.email.description")}
|
subtitle={t("pages.settings.form.email.description")}
|
||||||
leftContent={
|
leftContent={
|
||||||
<Stack gap={theme.spacing(8)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<TextLink
|
<TextLink
|
||||||
text={t("pages.settings.form.email.descriptionTransport")}
|
text={t("pages.settings.form.email.descriptionTransport")}
|
||||||
linkText={t("pages.settings.form.email.descriptionTransportLink")}
|
linkText={t("pages.settings.form.email.descriptionTransportLink")}
|
||||||
@@ -598,7 +599,7 @@ export const SettingsPage = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
}
|
}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack gap={theme.spacing(10)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
{/* Email Host */}
|
{/* Email Host */}
|
||||||
<Controller
|
<Controller
|
||||||
name="systemEmailHost"
|
name="systemEmailHost"
|
||||||
@@ -685,7 +686,7 @@ export const SettingsPage = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(LAYOUT.XS)}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
@@ -760,7 +761,7 @@ export const SettingsPage = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
gap: theme.spacing(4),
|
gap: theme.spacing(LAYOUT.XS),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{[
|
{[
|
||||||
@@ -879,7 +880,7 @@ export const SettingsPage = () => {
|
|||||||
subtitle={t("pages.settings.form.importExportMonitors.description")}
|
subtitle={t("pages.settings.form.importExportMonitors.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(LAYOUT.MD)}
|
||||||
direction={"row"}
|
direction={"row"}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
@@ -965,10 +966,10 @@ export const SettingsPage = () => {
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
backgroundColor: theme.palette.background.paper,
|
backgroundColor: theme.palette.background.paper,
|
||||||
borderTop: `1px solid ${theme.palette.divider}`,
|
borderTop: `1px solid ${theme.palette.divider}`,
|
||||||
padding: theme.spacing(8),
|
padding: theme.spacing(LAYOUT.MD),
|
||||||
marginLeft: theme.spacing(-8),
|
marginLeft: theme.spacing(-LAYOUT.MD),
|
||||||
marginRight: theme.spacing(-8),
|
marginRight: theme.spacing(-LAYOUT.MD),
|
||||||
marginBottom: theme.spacing(-8),
|
marginBottom: theme.spacing(-LAYOUT.MD),
|
||||||
zIndex: 1000,
|
zIndex: 1000,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user