From 2deac110aba82d6122e74deaadd14efe3ef98431 Mon Sep 17 00:00:00 2001 From: Randolph <840094513@qq.com> Date: Fri, 18 Mar 2022 15:22:15 +0800 Subject: [PATCH] feat: other user wallets can be seen even without verifying --- .../plugins/NextID/components/BindingItem.tsx | 4 ++- .../plugins/NextID/components/NextIdPage.tsx | 36 ++++++------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/packages/mask/src/plugins/NextID/components/BindingItem.tsx b/packages/mask/src/plugins/NextID/components/BindingItem.tsx index 76d3c19d7a18..ed107a0e768a 100644 --- a/packages/mask/src/plugins/NextID/components/BindingItem.tsx +++ b/packages/mask/src/plugins/NextID/components/BindingItem.tsx @@ -53,8 +53,10 @@ const useStyles = makeStyles()((theme) => ({ marginLeft: theme.spacing(1), }, })) + +type Platform = 'twitter' | 'nextid' | 'keybase' | 'ethereum' | 'github' interface Item { - platform: NextIDPlatform + platform: Platform identity: string tipable?: boolean deletable?: boolean diff --git a/packages/mask/src/plugins/NextID/components/NextIdPage.tsx b/packages/mask/src/plugins/NextID/components/NextIdPage.tsx index 2b62b8e2b499..2db887f6c9b8 100644 --- a/packages/mask/src/plugins/NextID/components/NextIdPage.tsx +++ b/packages/mask/src/plugins/NextID/components/NextIdPage.tsx @@ -121,33 +121,19 @@ export function NextIdPage({ personaList }: NextIDPageProps) { ) } - if (!isAccountVerified) { + if (!isAccountVerified && isOwn) { return ( - {isOwn ? ( - - {t.verify_Twitter_ID_intro()} - {t.verify_Twitter_ID()} - - ) : ( - - - {t.connect_wallet__other_user_tip_intro()} - - - {t.connect_wallet_other_user_instruction()} - - {t.connect_wallet_other_user_tip1()} - {t.connect_wallet_other_user_tip2()} - - )} - {isOwn && ( - - - - )} + + {t.verify_Twitter_ID_intro()} + {t.verify_Twitter_ID()} + + + + + ) }