From 8f8617d8f9250222b01693efdb8abe0cc6032993 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:51:38 +0700 Subject: [PATCH] update import key flow --- src/app/auth/components/user.tsx | 24 ++++++++++++---- src/app/auth/components/userImport.tsx | 38 ++++++++++++++++++++++++++ src/app/auth/import/step-1.tsx | 25 ++++++++++------- src/app/auth/import/step-2.tsx | 23 ++++++++-------- src/app/auth/import/step-3.tsx | 26 +++++++++++------- 5 files changed, 100 insertions(+), 36 deletions(-) create mode 100644 src/app/auth/components/userImport.tsx diff --git a/src/app/auth/components/user.tsx b/src/app/auth/components/user.tsx index 4b2b7c97..c4b26e9c 100644 --- a/src/app/auth/components/user.tsx +++ b/src/app/auth/components/user.tsx @@ -1,3 +1,6 @@ +import { Link } from 'react-router-dom'; + +import { WorldIcon } from '@shared/icons'; import { Image } from '@shared/image'; import { useProfile } from '@utils/hooks/useProfile'; @@ -8,7 +11,7 @@ export function User({ pubkey, fallback }: { pubkey: string; fallback?: string } if (status === 'loading') { return (
- {user?.name || user?.display_name} -
++ {user?.name || user?.display_name} +
+ {user?.website ? ( + ++ {user?.nip05 || user?.username || displayNpub(pubkey, 16)} +
+