fix: AccountMenu component to conditionally render logout button based on autoLogin status (#4535)
Refactor AccountMenu component to conditionally render logout button based on autoLogin status
This commit is contained in:
parent
f1fd5becc8
commit
0abc51d75a
1 changed files with 5 additions and 3 deletions
|
|
@ -126,9 +126,11 @@ export const AccountMenu = () => {
|
||||||
Logout
|
Logout
|
||||||
</HeaderMenuItemLink>
|
</HeaderMenuItemLink>
|
||||||
) : (
|
) : (
|
||||||
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
|
!autoLogin && (
|
||||||
Logout
|
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
|
||||||
</HeaderMenuItemButton>
|
Logout
|
||||||
|
</HeaderMenuItemButton>
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
</HeaderMenuItemsSection>
|
</HeaderMenuItemsSection>
|
||||||
</HeaderMenuItems>
|
</HeaderMenuItems>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue