mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-12-03 10:47:05 +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,57 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-claims authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { AddressMini, Card, styled } from '@pezkuwi/react-components';
|
||||
|
||||
import { useTranslation } from './translate.js';
|
||||
import usePezkuwiPreclaims from './usePezkuwiPreclaims.js';
|
||||
|
||||
export interface Props{
|
||||
className?: string;
|
||||
}
|
||||
|
||||
function Warning ({ className }: Props): React.ReactElement<Props> | null {
|
||||
const { t } = useTranslation();
|
||||
const needsAttest = usePezkuwiPreclaims();
|
||||
|
||||
if (!needsAttest.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Card isError>
|
||||
<StyledDiv className={className}>
|
||||
{
|
||||
needsAttest.length > 1
|
||||
? t('You need to sign an attestation for the following accounts:')
|
||||
: t('You need to sign an attestation for the following account:')
|
||||
}{
|
||||
needsAttest.map((address) => (
|
||||
<AddressMini
|
||||
key={address}
|
||||
value={address}
|
||||
/>
|
||||
))
|
||||
}
|
||||
</StyledDiv>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
const StyledDiv = styled.div`
|
||||
font-size: var(--font-size-h3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: 8rem;
|
||||
align-items: center;
|
||||
margin: 0 1rem;
|
||||
|
||||
.ui--AddressMini-address {
|
||||
max-width: 20rem;
|
||||
}
|
||||
`;
|
||||
|
||||
export default React.memo(Warning);
|
||||
Reference in new issue
Block a user