Only show Switch menu items when more than 1 account
This commit is contained in:
parent
75853cd8e4
commit
c3eb33e230
1 changed files with 25 additions and 21 deletions
|
@ -110,6 +110,8 @@ function Accounts({ onClose }) {
|
|||
</button>
|
||||
}
|
||||
>
|
||||
{moreThanOneAccount && (
|
||||
<>
|
||||
<MenuItem
|
||||
disabled={isCurrent}
|
||||
onClick={() => {
|
||||
|
@ -132,6 +134,8 @@ function Accounts({ onClose }) {
|
|||
</MenuLink>
|
||||
)}
|
||||
<MenuDivider />
|
||||
</>
|
||||
)}
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
states.showAccount = `${account.info.username}@${account.instanceURL}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue