Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflecting changes to Identity pallet #10959

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions packages/react-components/src/AccountSidebar/Identity.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// Copyright 2017-2024 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { AddressIdentity } from '@polkadot/react-hooks/types';

import React, { useMemo } from 'react';

import { useApi, useRegistrars, useSubidentities, useToggle } from '@polkadot/react-hooks';
import { AddressIdentityOtherDiscordKey } from '@polkadot/react-hooks/types';
import { type AddressIdentity, AddressIdentityOtherDiscordKey } from '@polkadot/react-hooks/types';
import { isHex } from '@polkadot/util';

import AddressMini from '../AddressMini.js';
Expand Down Expand Up @@ -150,6 +148,30 @@ function Identity ({ address, identity }: Props): React.ReactElement<Props> | nu
</div>
</div>
)}
{identity.github && (
<div className='tr'>
<div className='th'>{t('github')}</div>
<div className='td'>
{identity.github}
</div>
</div>
)}
{identity.matrix && (
<div className='tr'>
<div className='th'>{t('matrix')}</div>
<div className='td'>
{identity.matrix}
</div>
</div>
)}
{identity.discord && (
<div className='tr'>
<div className='th'>{t('discord')}</div>
<div className='td'>
{identity.discord}
</div>
</div>
)}
{identity.riot && (
<div className='tr'>
<div className='th'>{t('riot')}</div>
Expand Down