2022-01-15 22:11:07 +03:00
|
|
|
import { Paper } from "@mui/material";
|
|
|
|
import BasePage from "../components/base-page";
|
2022-01-15 22:22:37 +03:00
|
|
|
import SettingVerge from "../components/setting/setting-verge";
|
|
|
|
import SettingClash from "../components/setting/setting-clash";
|
2022-01-16 21:42:52 +03:00
|
|
|
import SettingSystem from "../components/setting/setting-system";
|
|
|
|
import Notice from "../components/notice";
|
2021-12-11 20:13:08 +03:00
|
|
|
|
2021-12-08 18:36:34 +03:00
|
|
|
const SettingPage = () => {
|
2022-01-16 21:42:52 +03:00
|
|
|
const onError = (error: any) => {
|
|
|
|
error && Notice.error(error.toString());
|
|
|
|
};
|
|
|
|
|
2021-12-09 18:28:57 +03:00
|
|
|
return (
|
2022-01-15 22:11:07 +03:00
|
|
|
<BasePage title="Settings">
|
2022-01-16 21:42:52 +03:00
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
|
|
<SettingClash onError={onError} />
|
2021-12-21 21:11:31 +03:00
|
|
|
</Paper>
|
2021-12-11 20:13:08 +03:00
|
|
|
|
2022-01-16 21:42:52 +03:00
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
|
|
<SettingSystem onError={onError} />
|
|
|
|
</Paper>
|
|
|
|
|
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
|
|
|
|
<SettingVerge onError={onError} />
|
2021-12-21 21:11:31 +03:00
|
|
|
</Paper>
|
2022-01-15 22:11:07 +03:00
|
|
|
</BasePage>
|
2021-12-09 18:28:57 +03:00
|
|
|
);
|
2021-12-08 18:36:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export default SettingPage;
|