{
+ if (isSameAccount(act, account)) return
+ setSwitchingAccount(act)
+ switchAccount(act)
+ .then(() => afterSwitch())
+ .finally(() => setSwitchingAccount(null))
+ }}
+ >
+
+
+
+
+
+
+ {formatPubkey(act.pubkey)}
+
+
+
+
+
+ {
+ e.stopPropagation()
+ removeAccount(act)
+ }}
+ />
+
+
+ {switchingAccount && isSameAccount(act, switchingAccount) && (
+
+
+
+ )}
+