feat: complete account and dashboard sprint

This commit is contained in:
Vakanaut
2026-07-12 15:56:26 +03:00
parent a6108ea927
commit 793d51fdce
19 changed files with 781 additions and 114 deletions

View File

@@ -38,9 +38,19 @@ export function AppLayout(): JSX.Element {
+ Добавить
</NavLink>
{user ? (
<button className="app-shell__link app-shell__link--button" type="button" onClick={() => void logout()}>
Выйти
</button>
<>
<NavLink
to="/account"
className={({ isActive }) =>
isActive ? "app-shell__link app-shell__link--active" : "app-shell__link"
}
>
Аккаунт
</NavLink>
<button className="app-shell__link app-shell__link--button" type="button" onClick={() => void logout()}>
Выйти
</button>
</>
) : (
<NavLink
to="/login"