frontend: add saving of settings state. move logout button in navigation. add close button to settings dialog.

This commit is contained in:
Kentai Radiquum 2024-04-28 01:18:40 +05:00
parent 4f680ca717
commit 93982a061c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 78 additions and 23 deletions

View file

@ -77,6 +77,15 @@ export const NavigationRail = (props) => {
);
})}
{userStore.isAuth && (
<button
className="circle transparent"
onClick={() => userStore.logout()}
>
<i>logout</i>
</button>
)}
<span className="max"></span>
<button
className="circle transparent"
@ -91,17 +100,6 @@ export const NavigationRail = (props) => {
>
<i>palette</i>
</button>
{userStore.isAuth ? (
<button
className="circle transparent"
onClick={() => userStore.logout()}
>
<i>logout</i>
</button>
) : (
""
)}
</nav>
);
};