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>
|
</button>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
{moreThanOneAccount && (
|
||||||
|
<>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
disabled={isCurrent}
|
disabled={isCurrent}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -132,6 +134,8 @@ function Accounts({ onClose }) {
|
||||||
</MenuLink>
|
</MenuLink>
|
||||||
)}
|
)}
|
||||||
<MenuDivider />
|
<MenuDivider />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
states.showAccount = `${account.info.username}@${account.instanceURL}`;
|
states.showAccount = `${account.info.username}@${account.instanceURL}`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue