feat: add authorization

This commit is contained in:
2026-08-13 15:03:59 +03:00
parent 1e13adabd3
commit 3448fea140
28 changed files with 4504 additions and 3707 deletions
+13 -2
View File
@@ -1,13 +1,24 @@
import { Stack, Title } from "@mantine/core";
import { Button, Stack, Title } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router";
import { useAuth } from "../../../features/auth";
import { StateView } from "../../../shared/ui/StateView";
export function SettingsPage() {
const { t } = useTranslation();
const { logout } = useAuth();
const navigate = useNavigate();
return (
<Stack>
<Title order={1}>{t("settings.title")}</Title>
<SettingsPageEmpty />
<Button
onClick={async () => {
await logout();
navigate("/login", { replace: true });
}}
>
{t("auth.logout")}
</Button>
</Stack>
);
}