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
|
||||
</HeaderMenuItemLink>
|
||||
) : (
|
||||
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
|
||||
Logout
|
||||
</HeaderMenuItemButton>
|
||||
!autoLogin && (
|
||||
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
|
||||
Logout
|
||||
</HeaderMenuItemButton>
|
||||
)
|
||||
)}
|
||||
</HeaderMenuItemsSection>
|
||||
</HeaderMenuItems>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue