use different import profile page after setup

This commit is contained in:
Paul Miller
2024-03-27 15:13:21 -05:00
committed by Tony Giorgio
parent c5bec8b059
commit 787d89b8a7
4 changed files with 27 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ import {
EmergencyKit,
Encrypt,
Gift,
ImportProfileSettings,
Language,
ManageFederations,
NostrKeys,
@@ -187,6 +188,10 @@ export function Router() {
<Route path="/restore" component={Restore} />
<Route path="/servers" component={Servers} />
<Route path="/nostrkeys" component={NostrKeys} />
<Route
path="/importprofile"
component={ImportProfileSettings}
/>
<Route path="/federations" component={ManageFederations} />
</Route>
<Route path="/*all" component={NotFound} />

View File

@@ -0,0 +1,20 @@
import { BackLink, DefaultMain, ImportNsecForm } from "~/components";
export function ImportProfileSettings() {
return (
<DefaultMain>
<BackLink href="/settings/nostrkeys" />
<div class="mx-auto flex max-w-[20rem] flex-1 flex-col items-center gap-4">
<div class="flex-1" />
<h1 class="text-3xl font-semibold">Import nostr profile</h1>
<p class="text-center text-xl font-light text-neutral-200">
Login with an existing nostr account.
<br />
</p>
<div class="flex-1" />
<ImportNsecForm />
<div class="flex-1" />
</div>
</DefaultMain>
);
}

View File

@@ -58,7 +58,7 @@ export function NostrKeys() {
</VStack>
</FancyCard>
<A
href="/importprofile"
href="/settings/importprofile"
class="self-center text-base font-normal text-m-grey-400"
>
Import different nostr profile

View File

@@ -13,3 +13,4 @@ export * from "./Restore";
export * from "./Servers";
export * from "./ManageFederations";
export * from "./NostrKeys";
export * from "./ImportProfile";