mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-24 14:49: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,23 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-alliance authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { AddressSmall } from '@pezkuwi/react-components';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
function Account ({ className, value }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<tr className={className}>
|
||||
<td className='address all'>
|
||||
<AddressSmall value={value} />
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Account);
|
||||
@@ -0,0 +1,21 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-alliance authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
function Website ({ className, value }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<tr className={className}>
|
||||
<td className='start all'>
|
||||
{value}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Website);
|
||||
@@ -0,0 +1,58 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-alliance authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Unscrupulous as UnscrupulousType } from '../types.js';
|
||||
|
||||
import React, { useRef } from 'react';
|
||||
|
||||
import { Table } from '@pezkuwi/react-components';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Account from './Account.js';
|
||||
import Website from './Website.js';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
unscrupulous?: UnscrupulousType;
|
||||
}
|
||||
|
||||
function Unscrupulous ({ className, unscrupulous }: Props): React.ReactElement<Props> {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const accRef = useRef<([React.ReactNode?, string?, number?] | false)[]>([
|
||||
[t('accounts'), 'start']
|
||||
]);
|
||||
|
||||
const webRef = useRef<([React.ReactNode?, string?, number?] | false)[]>([
|
||||
[t('websites'), 'start']
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
<Table
|
||||
empty={unscrupulous?.accounts && t('No accounts')}
|
||||
header={accRef.current}
|
||||
>
|
||||
{unscrupulous?.accounts.map((m) => (
|
||||
<Account
|
||||
key={m}
|
||||
value={m}
|
||||
/>
|
||||
))}
|
||||
</Table>
|
||||
<Table
|
||||
empty={unscrupulous?.websites && t('No websites')}
|
||||
header={webRef.current}
|
||||
>
|
||||
{unscrupulous?.websites.map((m) => (
|
||||
<Website
|
||||
key={m}
|
||||
value={m}
|
||||
/>
|
||||
))}
|
||||
</Table>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Unscrupulous);
|
||||
Reference in new issue
Block a user