Only show Switch menu items when more than 1 account

pull/681/head
Lim Chee Aun 2024-08-25 17:53:24 +08:00
rodzic 75853cd8e4
commit c3eb33e230
1 zmienionych plików z 25 dodań i 21 usunięć

Wyświetl plik

@ -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}`;