mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-26 07:29:57 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,123 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Badge, styled, Tag } from '@pezkuwi/react-components';
|
||||
|
||||
import { useTranslation } from './translate.js';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
isRelay?: boolean;
|
||||
minCommission?: BN;
|
||||
}
|
||||
|
||||
function Legend ({ className, isRelay, minCommission }: Props): React.ReactElement<Props> {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<StyledDiv className={className}>
|
||||
<span>
|
||||
<Badge
|
||||
color='blue'
|
||||
icon='chevron-right'
|
||||
/>
|
||||
<span>{t('Next session')}</span>
|
||||
</span>
|
||||
{minCommission && (
|
||||
<span>
|
||||
<Badge
|
||||
color='red'
|
||||
icon='cancel'
|
||||
/>
|
||||
<span>{t('Chilled')}</span>
|
||||
</span>
|
||||
)}
|
||||
{isRelay && (
|
||||
<span>
|
||||
<Badge
|
||||
color='purple'
|
||||
icon='vector-square'
|
||||
/>
|
||||
<span>{t('Para validator')}</span>
|
||||
</span>
|
||||
)}
|
||||
<span>
|
||||
<Badge
|
||||
color='green'
|
||||
info='5'
|
||||
/>
|
||||
<span>{t('Produced blocks')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Badge
|
||||
color='green'
|
||||
icon='envelope'
|
||||
/>
|
||||
<span>{t('Online message')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Badge
|
||||
color='green'
|
||||
icon='hand-paper'
|
||||
/>
|
||||
<span>{t('Nominating')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Badge
|
||||
color='red'
|
||||
icon='balance-scale-right'
|
||||
/>
|
||||
<span>{t('Oversubscribed')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Badge
|
||||
color='red'
|
||||
icon='skull-crossbones'
|
||||
/>
|
||||
<span>{t('Slashed')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Badge
|
||||
color='red'
|
||||
icon='user-slash'
|
||||
/>
|
||||
<span>{t('Blocks nominations')}</span>
|
||||
</span>
|
||||
<span>
|
||||
<Tag
|
||||
color='lightgrey'
|
||||
label='1,220'
|
||||
/>
|
||||
<span>{t('Era points')}</span>
|
||||
</span>
|
||||
</StyledDiv>
|
||||
);
|
||||
}
|
||||
|
||||
const StyledDiv = styled.div`
|
||||
font-size: var(--font-size-small);
|
||||
padding: 1rem 0.5rem;
|
||||
text-align: center;
|
||||
|
||||
.ui--Badge, .ui--Tag {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
span {
|
||||
vertical-align: middle;
|
||||
|
||||
* {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
+ span {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default React.memo(Legend);
|
||||
Reference in new issue
Block a user