refactor: account managements (#190)

* feat: add keyring-search

* feat: improve nostr connect
This commit is contained in:
雨宮蓮
2024-05-22 13:24:58 +07:00
committed by GitHub
parent 1f38eba2cc
commit 407fe40b67
10 changed files with 152 additions and 142 deletions

View File

@@ -14,7 +14,7 @@ export const Route = createFileRoute("/")({
await checkForAppUpdates(true);
const ark = context.ark;
const accounts = await ark.get_all_accounts();
const accounts = await ark.get_accounts();
if (!accounts.length) {
throw redirect({
@@ -41,7 +41,7 @@ function Screen() {
try {
setLoading(true);
const loadAccount = await ark.load_selected_account(npub);
const loadAccount = await ark.load_account(npub);
if (loadAccount) {
return navigate({
to: "/$account/home",