From d4e5a4ecd177dc997afbaf35fdd85445bf2a2a93 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 12 Jan 2020 15:23:42 +0100 Subject: [PATCH] Display sub identities --- package.json | 6 +++--- packages/app-accounts/src/modals/Identity.tsx | 16 ++++++++++++++++ packages/app-contracts/package.json | 2 +- packages/react-api/package.json | 2 +- packages/react-components/src/AccountName.tsx | 15 ++++++++++++++- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 7e4addc70c9..3118a9d353c 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^0.100.0-beta.27", - "@polkadot/api-contract": "^0.100.0-beta.27", + "@polkadot/api": "^0.100.0-beta.28", + "@polkadot/api-contract": "^0.100.0-beta.28", "@polkadot/keyring": "^1.8.1", - "@polkadot/types": "^0.100.0-beta.27", + "@polkadot/types": "^0.100.0-beta.28", "@polkadot/util": "^1.8.1", "@polkadot/util-crypto": "^1.8.1", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/app-accounts/src/modals/Identity.tsx b/packages/app-accounts/src/modals/Identity.tsx index 66caf5f26d9..96b2e8bc15c 100644 --- a/packages/app-accounts/src/modals/Identity.tsx +++ b/packages/app-accounts/src/modals/Identity.tsx @@ -63,6 +63,7 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement

({ errPgp: true, valPgp: '' }); const [valRiot, setValRiot] = useState(''); + const [valTwitter, setValTwitter] = useState(''); const [valWeb, setValWeb] = useState(''); useEffect((): void => { @@ -80,6 +82,7 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement

'} /> + + '} + /> + {t('display')} {identity.display} + {identity.parent && ( + + {t('parent')} + + + )} {identity.legal && ( {t('legal')} @@ -153,6 +160,12 @@ function AccountName ({ children, className, defaultName, label, onClick, overri {identity.web} )} + {identity.twitter && ( + + {t('twitter')} + {identity.twitter} + + )} {identity.riot && ( {t('riot')} @@ -172,7 +185,7 @@ function AccountName ({ children, className, defaultName, label, onClick, overri

} + info={} isInline isSmall isTooltip