Move contribution column (#5539)

This commit is contained in:
Jaco 2021-06-09 18:50:22 +03:00 committed by GitHub
parent 02607a5df2
commit 11214eea36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 14 deletions

View File

@ -6,7 +6,7 @@ import type { Campaign, LeasePeriod } from '../types';
import React, { useMemo } from 'react';
import { AddressMini, Expander, Icon, ParaLink, TxButton } from '@polkadot/react-components';
import { AddressMini, Expander, ParaLink, TxButton } from '@polkadot/react-components';
import { useAccounts, useApi, useParaEndpoints } from '@polkadot/react-hooks';
import { BlockToTime, FormatBalance } from '@polkadot/react-query';
import { formatNumber } from '@polkadot/util';
@ -105,12 +105,6 @@ function Fund ({ bestNumber, className, isOdd, isOngoing, leasePeriod, value: {
formatNumber(contributorsHex.length)
)}
</td>
<td className='badge media--1000'>
<Icon
color={myAccounts.length ? 'green' : 'gray'}
icon='asterisk'
/>
</td>
<td className='button media--1000'>
{canWithdraw && contributorsHex.length !== 0 && (
<Refund paraId={paraId} />
@ -144,7 +138,12 @@ function Fund ({ bestNumber, className, isOdd, isOngoing, leasePeriod, value: {
<tr className={`${className || ''} ${isOdd ? 'isOdd' : 'isEven'} isExpanded`}>
<td colSpan={2} />
<td className='media--800' />
<td className='no-pad-top media--1400'>
<td className='media--1400' />
<td className='media--1200' />
<td
className='all number no-pad-top'
colSpan={2}
>
{myAccounts.length !== 0 && (
<Expander summary={t<string>('My contributions ({{count}})', { replace: { count: myAccounts.length } })}>
{myAccounts.map((a, index) => (
@ -158,11 +157,7 @@ function Fund ({ bestNumber, className, isOdd, isOngoing, leasePeriod, value: {
</Expander>
)}
</td>
<td className='media--1200' />
<td className='all' />
<td />
<td className='media--1100' />
<td className='media--1000' />
<td className='middle no-pad-top media--1000'>
<a
href={homepage}

View File

@ -68,7 +68,6 @@ function Funds ({ bestNumber, className, leasePeriod, value }: Props): React.Rea
[t('leases')],
[t('raised')],
[t('count'), 'media--1100'],
[undefined, 'badge media--1000'],
[undefined, 'media--1000']
]);
@ -80,7 +79,6 @@ function Funds ({ bestNumber, className, leasePeriod, value }: Props): React.Rea
[t('leases')],
[t('raised')],
[t('count'), 'media--1100'],
[undefined, 'badge media--1000'],
[undefined, 'media--1000']
]);