feat: account switcher

This commit is contained in:
2024-02-24 14:41:57 +07:00
parent 84584a4d1f
commit 88a6c3c81f
14 changed files with 114 additions and 34 deletions

View File

@@ -26,7 +26,8 @@ function Create() {
try {
await ark.save_account(keys);
navigate({
to: "/app/home/local",
to: "/$account/home/local",
params: { account: keys.npub },
search: { onboarding: true },
replace: true,
});

View File

@@ -32,7 +32,8 @@ function Import() {
nsec: key,
});
navigate({
to: "/app/home",
to: "/$account/home/local",
params: { account: npub },
search: { onboarding: true },
replace: true,
});