Addiitonal media query opts (#5033)
This commit is contained in:
parent
f9e4a0383d
commit
4df49b67c5
@ -6,7 +6,7 @@ import type { AuctionInfo, WinnerData } from '../types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { AddressMini, Digits, ParaLink } from '@polkadot/react-components';
|
||||
import { AddressMini, ParaLink } from '@polkadot/react-components';
|
||||
import { FormatBalance } from '@polkadot/react-query';
|
||||
import { formatNumber } from '@polkadot/util';
|
||||
|
||||
@ -38,12 +38,11 @@ function WinRanges ({ auctionInfo, blockNumber, className = '', isFirst, isLates
|
||||
<td className='badge'><ParaLink id={paraId} /></td>
|
||||
<td className='address'><AddressMini value={accountId} /></td>
|
||||
<td className='all number'>{isCrowdloan ? t<string>('Yes') : t<string>('No')}</td>
|
||||
<td className='all number'>
|
||||
<Digits value={
|
||||
firstSlot.eq(lastSlot)
|
||||
? formatNumber(firstSlot)
|
||||
: `${formatNumber(firstSlot)} - ${formatNumber(lastSlot)}`
|
||||
} />
|
||||
<td className='all number together'>
|
||||
{firstSlot.eq(lastSlot)
|
||||
? formatNumber(firstSlot)
|
||||
: `${formatNumber(firstSlot)} - ${formatNumber(lastSlot)}`
|
||||
}
|
||||
</td>
|
||||
<td className='number'><FormatBalance value={value} /></td>
|
||||
</tr>
|
||||
|
||||
@ -8,7 +8,7 @@ import type { Campaign, LeasePeriod } from '../types';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import { AddressMini, Digits, Icon, ParaLink, TxButton } from '@polkadot/react-components';
|
||||
import { AddressMini, Icon, ParaLink, TxButton } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useEventTrigger } from '@polkadot/react-hooks';
|
||||
import { BlockToTime, FormatBalance } from '@polkadot/react-query';
|
||||
import { formatNumber } from '@polkadot/util';
|
||||
@ -105,7 +105,7 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
|
||||
<tr className={className}>
|
||||
<td className='number'><h1>{formatNumber(paraId)}</h1></td>
|
||||
<td className='badge'><ParaLink id={paraId} /></td>
|
||||
<td>
|
||||
<td className='media--800'>
|
||||
{isWinner
|
||||
? t<string>('Winner')
|
||||
: isRetired
|
||||
@ -125,7 +125,7 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
|
||||
</td>
|
||||
<td className='address media--1400'><AddressMini value={depositor} /></td>
|
||||
{!isOngoing && (
|
||||
<td className='all number together'>
|
||||
<td className='all number together media--1000'>
|
||||
{(isRetired || retiring.isTrue) && (
|
||||
<>
|
||||
{retiringLeft && (
|
||||
@ -136,18 +136,17 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
<td className={`all number together${isOngoing ? '' : ' media--1200'}`}>
|
||||
<td className='all number together media--1000'>
|
||||
{blocksLeft && (
|
||||
<BlockToTime value={blocksLeft} />
|
||||
)}
|
||||
#{formatNumber(end)}
|
||||
</td>
|
||||
<td className='number'>
|
||||
<Digits value={
|
||||
firstSlot.eq(lastSlot)
|
||||
? formatNumber(firstSlot)
|
||||
: `${formatNumber(firstSlot)} - ${formatNumber(lastSlot)}`
|
||||
} />
|
||||
<td className='number all together'>
|
||||
{firstSlot.eq(lastSlot)
|
||||
? formatNumber(firstSlot)
|
||||
: `${formatNumber(firstSlot)} - ${formatNumber(lastSlot)}`
|
||||
}
|
||||
</td>
|
||||
<td className='number together'>
|
||||
<FormatBalance
|
||||
@ -158,7 +157,7 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
|
||||
/>
|
||||
<div>{percentage}</div>
|
||||
</td>
|
||||
<td className='number media--1100'>
|
||||
<td className='number'>
|
||||
{uniqueKeys.length !== 0 && (
|
||||
formatNumber(uniqueKeys.length)
|
||||
)}
|
||||
@ -169,7 +168,7 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
|
||||
icon='asterisk'
|
||||
/>
|
||||
</td>
|
||||
<td className='button'>
|
||||
<td className='button media--1300'>
|
||||
{canWithdraw && uniqueKeys.length !== 0 && (
|
||||
<Refund
|
||||
allAccounts={uniqueKeys}
|
||||
|
||||
@ -62,27 +62,27 @@ function Funds ({ bestNumber, className, leasePeriod, value }: Props): React.Rea
|
||||
|
||||
const headerActiveRef = useRef([
|
||||
[t('ongoing'), 'start', 2],
|
||||
[undefined, 'media--800'],
|
||||
[undefined, 'media--1400'],
|
||||
[],
|
||||
[t('ending')],
|
||||
[t('ending'), 'media--1000'],
|
||||
[t('leases')],
|
||||
[t('raised')],
|
||||
[t('unique'), 'media--1100'],
|
||||
[t('unique')],
|
||||
[undefined, 'badge'],
|
||||
[]
|
||||
[undefined, 'media--1300']
|
||||
]);
|
||||
|
||||
const headedEndedRef = useRef([
|
||||
[t('completed'), 'start', 2],
|
||||
[undefined, 'media--800'],
|
||||
[undefined, 'media--1400'],
|
||||
[],
|
||||
[t('retired')],
|
||||
[t('ending'), 'media--1200'],
|
||||
[t('retired'), 'media--1000'],
|
||||
[t('ending'), 'media--1000'],
|
||||
[t('leases')],
|
||||
[t('raised')],
|
||||
[t('unique'), 'media--1100'],
|
||||
[t('unique')],
|
||||
[undefined, 'badge'],
|
||||
[]
|
||||
[undefined, 'media--1300']
|
||||
]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user