mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-12 08:45:44 +00:00
971df8edba
- Remove all 3rd party parachain configurations from endpoints: - productionRelayPolkadot.ts: Keep only system parachains - productionRelayDicle.ts: Keep only system parachains - testingRelayZagros.ts: Keep only system parachains - testingRelayTeyrChain.ts: Keep only system parachains - Update domain references: - polkadot.js.org → pezkuwichain.app - wiki.polkadot.network → wiki.pezkuwichain.io - dotapps.io → pezkuwichain.app - statement.polkadot.network → docs.pezkuwichain.io/statement - support.polkadot.network → docs.pezkuwichain.io - Update repository references: - github.com/pezkuwi-js/apps → github.com/pezkuwichain/pwap - Rename system parachains to Pezkuwi ecosystem: - PolkadotAssetHub → PezkuwiAssetHub - polkadotBridgeHub → pezkuwiBridgeHub - polkadotCollectives → pezkuwiCollectives - polkadotCoretime → pezkuwiCoretime - polkadotPeople → pezkuwiPeople - Update network name in claims utility: - Polkadot → Pezkuwi
65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import { useJudgements } from '@pezkuwi/react-hooks';
|
|
|
|
import { styled } from '../styled.js';
|
|
import Tag from '../Tag.js';
|
|
import { useTranslation } from '../translate.js';
|
|
import JudgementTag from './JudgementTag.js';
|
|
|
|
interface Props {
|
|
address: string;
|
|
className?: string;
|
|
}
|
|
|
|
function Judgements ({ address, className = '' }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
|
|
const judgements = useJudgements(address);
|
|
|
|
if (judgements.length === 0) {
|
|
return (
|
|
<div
|
|
className={`${className} no-judgements`}
|
|
data-testid='judgements'
|
|
>
|
|
<Tag
|
|
color='yellow'
|
|
key='NoJudgements'
|
|
label={t('No judgements')}
|
|
size='tiny'
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<StyledDiv
|
|
className={className}
|
|
data-testid='judgements'
|
|
>
|
|
{judgements.map((judgement) =>
|
|
<JudgementTag
|
|
judgement={judgement}
|
|
key={`${address}${judgement.judgementName}`}
|
|
/>
|
|
)}
|
|
</StyledDiv>
|
|
);
|
|
}
|
|
|
|
const StyledDiv = styled.div`
|
|
margin-top: 0.714rem;
|
|
|
|
&:not(.no-judgements) {
|
|
.ui--Tag:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default React.memo(Judgements);
|