mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-08-07 20:05:42 +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
57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/app-accounts authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { CodeStored } from './types.js';
|
|
|
|
import React, { useCallback } from 'react';
|
|
|
|
import { Button, Modal } from '@pezkuwi/react-components';
|
|
|
|
import CodeRow from './shared/CodeRow.js';
|
|
import { useTranslation } from './translate.js';
|
|
|
|
interface Props {
|
|
code: CodeStored;
|
|
onClose: () => void;
|
|
onRemove: () => void;
|
|
}
|
|
|
|
function RemoveABI ({ code, onClose, onRemove }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
|
|
const _onRemove = useCallback(
|
|
(): void => {
|
|
onClose && onClose();
|
|
onRemove();
|
|
},
|
|
[onClose, onRemove]
|
|
);
|
|
|
|
return (
|
|
<Modal
|
|
className='app--accounts-Modal'
|
|
header={t('Confirm ABI removal')}
|
|
onClose={onClose}
|
|
>
|
|
<Modal.Content>
|
|
<CodeRow
|
|
code={code}
|
|
isInline
|
|
>
|
|
<p>{t('You are about to remove this code\'s ABI. Once completed, should you need to access it again, you will have to manually re-upload it.')}</p>
|
|
<p>{t('This operation does not impact the associated on-chain code or any of its contracts.')}</p>
|
|
</CodeRow>
|
|
</Modal.Content>
|
|
<Modal.Actions>
|
|
<Button
|
|
icon='trash'
|
|
label={t('Remove')}
|
|
onClick={_onRemove}
|
|
/>
|
|
</Modal.Actions>
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
export default React.memo(RemoveABI);
|