shellphone.app/app/settings/pages/settings/account.tsx

40 lines
991 B
TypeScript
Raw Normal View History

2021-07-31 17:22:48 +00:00
import type { BlitzPage } from "blitz";
2021-08-01 03:05:40 +00:00
import { Routes } from "blitz";
2021-07-31 17:22:48 +00:00
import SettingsLayout from "../../components/settings-layout";
import ProfileInformations from "../../components/profile-informations";
import Divider from "../../components/divider";
import UpdatePassword from "../../components/update-password";
import DangerZone from "../../components/danger-zone";
import useRequireOnboarding from "../../../core/hooks/use-require-onboarding";
const Account: BlitzPage = () => {
useRequireOnboarding();
return (
<SettingsLayout>
<div className="flex flex-col space-y-6 p-6">
<ProfileInformations />
<div className="hidden lg:block">
<Divider />
</div>
<UpdatePassword />
<div className="hidden lg:block">
<Divider />
</div>
<DangerZone />
</div>
</SettingsLayout>
);
};
2021-08-01 03:05:40 +00:00
Account.getLayout = (page) => <SettingsLayout>{page}</SettingsLayout>;
Account.authenticate = { redirectTo: Routes.SignIn() };
2021-07-31 17:22:48 +00:00
export default Account;