mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-14 18:37:07 +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,62 @@
|
||||
// Copyright 2017-2025 @pezkuwi/react-signer authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { QueueTx } from '@pezkuwi/react-components/Status/types';
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
import type { ExtendedSignerOptions } from './types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Modal, styled } from '@pezkuwi/react-components';
|
||||
import { CallExpander } from '@pezkuwi/react-params';
|
||||
|
||||
import PaymentInfo from './PaymentInfo.js';
|
||||
import { useTranslation } from './translate.js';
|
||||
|
||||
interface Props {
|
||||
accountId?: string | null;
|
||||
className?: string;
|
||||
currentItem: QueueTx;
|
||||
onError: () => void;
|
||||
tip?: BN;
|
||||
signerOptions?: ExtendedSignerOptions;
|
||||
}
|
||||
|
||||
function Transaction ({ accountId, className, currentItem: { extrinsic, isUnsigned, payload }, onError, signerOptions, tip }: Props): React.ReactElement<Props> | null {
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (!extrinsic) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<StyledModalColumns
|
||||
className={className}
|
||||
hint={t('The details of the transaction including the type, the description (as available from the chain metadata) as well as any parameters and fee estimations (as available) for the specific type of call.')}
|
||||
>
|
||||
<CallExpander
|
||||
isHeader
|
||||
onError={onError}
|
||||
value={extrinsic}
|
||||
/>
|
||||
{!isUnsigned && !payload && (
|
||||
<PaymentInfo
|
||||
accountId={accountId}
|
||||
className='paymentInfo'
|
||||
extrinsic={extrinsic}
|
||||
isHeader
|
||||
signerOptions={signerOptions}
|
||||
tip={tip}
|
||||
/>
|
||||
)}
|
||||
</StyledModalColumns>
|
||||
);
|
||||
}
|
||||
|
||||
const StyledModalColumns = styled(Modal.Columns)`
|
||||
.paymentInfo {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
`;
|
||||
|
||||
export default React.memo(Transaction);
|
||||
Reference in new issue
Block a user