mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-06 04:49:40 +05:00
frontend: add saving of settings state. move logout button in navigation. add close button to settings dialog.
This commit is contained in:
parent
4f680ca717
commit
93982a061c
4 changed files with 78 additions and 23 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue