mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-15 20:24:25 +01:00
use different import profile page after setup
This commit is contained in:
committed by
Tony Giorgio
parent
c5bec8b059
commit
787d89b8a7
@@ -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} />
|
||||
|
||||
20
src/routes/settings/ImportProfile.tsx
Normal file
20
src/routes/settings/ImportProfile.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -13,3 +13,4 @@ export * from "./Restore";
|
||||
export * from "./Servers";
|
||||
export * from "./ManageFederations";
|
||||
export * from "./NostrKeys";
|
||||
export * from "./ImportProfile";
|
||||
|
||||
Reference in New Issue
Block a user