mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-08-05 11:25:47 +00:00
7a4bbeac25
- Update @pezkuwi/extension-inject to ^0.62.13 with proper /types exports - Update @pezkuwi/extension-dapp to ^0.62.13 - Update @pezkuwi/extension-compat-metamask to ^0.62.13 - Fix IconTheme type to include 'bizinikiwi' and 'pezkuwi' themes - Fix endpoint array issues (getTeleports -> direct array references) - Add type assertions for external package compatibility (acala, moonbeam, parallel) - Fix subspace.ts dynamic class typing - Fix conviction type in page-referenda - Update Pallet type names to Pezpallet prefix across codebase - Define InjectedExtension types locally for module resolution - Add styled-components DefaultTheme augmentation - Add react-copy-to-clipboard type declaration for React 18 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/app-teyrchains authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import { MarkWarning, styled } from '@pezkuwi/react-components';
|
|
import { useStakingAsyncApis } from '@pezkuwi/react-hooks';
|
|
|
|
import { useTranslation } from '../translate.js';
|
|
|
|
const BannerAssetHubMigration = () => {
|
|
const { t } = useTranslation();
|
|
const { isRelayChain } = useStakingAsyncApis();
|
|
|
|
if (!isRelayChain) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<StyledBanner
|
|
className='warning centered'
|
|
withIcon={false}
|
|
>
|
|
<p>
|
|
{t('After the Asset Hub migration, crowdloan related activity has been transferred to the `ah_ops` pallet on Asset Hub. You can claim your funds from there, or visit ')}
|
|
<a
|
|
href='https://pezkuwi-crowdloan.com/'
|
|
rel='noopener noreferrer'
|
|
target='_blank'
|
|
>
|
|
{t('the Pezkuwi Crowdloan UI')}
|
|
</a>
|
|
{t(' for more details.')}
|
|
</p>
|
|
</StyledBanner>
|
|
);
|
|
};
|
|
|
|
const StyledBanner = styled(MarkWarning)`
|
|
border: 1px solid #ffc107;
|
|
background: #ffc10720;
|
|
font-size: 1rem !important;
|
|
`;
|
|
|
|
export default React.memo(BannerAssetHubMigration);
|