Accounts
-
{accounts.map((account, i) => {
const isCurrent = account.info.id === currentAccount;
const isDefault = i === (currentDefault || 0);
return (
-
{moreThanOneAccount && (
)} { if (isCurrent) { try { const info = await masto.v1.accounts.fetch( account.info.id, ); console.log('fetched account info', info); account.info = info; store.local.setJSON('accounts', accounts); reload(); } catch (e) {} } }} /> { states.showAccount = `${account.info.username}@${account.instanceURL}`; }} /> {isDefault && moreThanOneAccount && ( <> Default{' '} > )} {!isCurrent && ( )}
);
})}
Note: Default account will always be used for first load. Switched accounts will persist during the session.
)}Add new account
Settings
Hidden features
About
{' '}
{
e.preventDefault();
states.showAccount = 'phanpy@hachyderm.io';
}}
>
@phanpy
.{' '}
Built
{' '}
by{' '}
{
e.preventDefault();
states.showAccount = 'cheeaun@mastodon.social';
}}
>
@cheeaun
.
Last build: {__COMMIT_HASH__}
)
>
)}