2022-01-16 03:11:07 +08:00
|
|
|
import { Paper } from "@mui/material";
|
2022-03-12 23:07:45 +08:00
|
|
|
import { useTranslation } from "react-i18next";
|
2022-08-06 02:35:11 +08:00
|
|
|
import Notice from "@/components/base/base-notice";
|
|
|
|
import BasePage from "@/components/base/base-page";
|
|
|
|
import SettingVerge from "@/components/setting/setting-verge";
|
|
|
|
import SettingClash from "@/components/setting/setting-clash";
|
|
|
|
import SettingSystem from "@/components/setting/setting-system";
|
2021-12-12 01:13:08 +08:00
|
|
|
|
2021-12-08 23:36:34 +08:00
|
|
|
const SettingPage = () => {
|
2022-03-12 23:07:45 +08:00
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
const onError = (err: any) => {
|
|
|
|
Notice.error(err?.message || err.toString());
|
2022-01-17 02:42:52 +08:00
|
|
|
};
|
|
|
|
|
2021-12-09 23:28:57 +08:00
|
|
|
return (
|
2022-03-12 23:07:45 +08:00
|
|
|
<BasePage title={t("Settings")}>
|
2022-01-17 02:42:52 +08:00
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
|
|
<SettingClash onError={onError} />
|
2021-12-22 02:11:31 +08:00
|
|
|
</Paper>
|
2021-12-12 01:13:08 +08:00
|
|
|
|
2022-01-17 02:42:52 +08:00
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
|
|
<SettingSystem onError={onError} />
|
|
|
|
</Paper>
|
|
|
|
|
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
|
|
|
|
<SettingVerge onError={onError} />
|
2021-12-22 02:11:31 +08:00
|
|
|
</Paper>
|
2022-01-16 03:11:07 +08:00
|
|
|
</BasePage>
|
2021-12-09 23:28:57 +08:00
|
|
|
);
|
2021-12-08 23:36:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default SettingPage;
|