mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-12-04 11:37:05 +00:00
- 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
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/app-parachains authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { BN } from '@pezkuwi/util';
|
|
import type { AuctionInfo, WinnerData } from '../types.js';
|
|
|
|
import React from 'react';
|
|
|
|
import { AddressMini, ParaLink, Table } from '@pezkuwi/react-components';
|
|
import { formatNumber } from '@pezkuwi/util';
|
|
|
|
import { useTranslation } from '../translate.js';
|
|
|
|
interface Props {
|
|
auctionInfo: AuctionInfo;
|
|
blockNumber?: BN;
|
|
className?: string;
|
|
isFirst: boolean;
|
|
isLatest: boolean;
|
|
value: WinnerData;
|
|
}
|
|
|
|
function WinRanges ({ auctionInfo, blockNumber, className = '', isFirst, isLatest, value: { accountId, firstSlot, isCrowdloan, lastSlot, paraId, value } }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<tr className={className}>
|
|
<td>
|
|
{isFirst && (
|
|
<h1>{isLatest
|
|
? t('latest')
|
|
: <>#{formatNumber((!blockNumber || blockNumber.isZero()) ? auctionInfo.endBlock : blockNumber)}</>
|
|
}</h1>
|
|
)}
|
|
</td>
|
|
<Table.Column.Id value={paraId} />
|
|
<td className='badge'><ParaLink id={paraId} /></td>
|
|
<td className='address'><AddressMini value={accountId} /></td>
|
|
<td className='all number'>{isCrowdloan ? t('Yes') : t('No')}</td>
|
|
<td className='all number together'>
|
|
{firstSlot.eq(lastSlot)
|
|
? formatNumber(firstSlot)
|
|
: `${formatNumber(firstSlot)} - ${formatNumber(lastSlot)}`
|
|
}
|
|
</td>
|
|
<Table.Column.Balance value={value} />
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
export default React.memo(WinRanges);
|