mirror of
https://github.com/docmost/docmost.git
synced 2026-08-29 10:05:03 +08:00
* user session management * WIP * cleanup * license * cleanup * don't cache index * rename current device property * fix
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import AccountNameForm from "@/features/user/components/account-name-form";
|
|
import ChangeEmail from "@/features/user/components/change-email";
|
|
import ChangePassword from "@/features/user/components/change-password";
|
|
import { Divider } from "@mantine/core";
|
|
import AccountAvatar from "@/features/user/components/account-avatar";
|
|
import SettingsTitle from "@/components/settings/settings-title.tsx";
|
|
import { getAppName } from "@/lib/config.ts";
|
|
import { Helmet } from "react-helmet-async";
|
|
import { useTranslation } from "react-i18next";
|
|
import { AccountMfaSection } from "@/features/user/components/account-mfa-section";
|
|
import SessionList from "@/features/session/components/session-list";
|
|
|
|
export default function AccountSettings() {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>
|
|
{t("My Profile")} - {getAppName()}
|
|
</title>
|
|
</Helmet>
|
|
<SettingsTitle title={t("My Profile")} />
|
|
|
|
<AccountAvatar />
|
|
|
|
<AccountNameForm />
|
|
|
|
<Divider my="lg" />
|
|
|
|
<ChangeEmail />
|
|
|
|
<Divider my="lg" />
|
|
|
|
<ChangePassword />
|
|
|
|
<Divider my="lg" />
|
|
|
|
<AccountMfaSection />
|
|
|
|
<Divider my="lg" />
|
|
|
|
<SessionList />
|
|
</>
|
|
);
|
|
}
|