Referenda links move) (#8386)

This commit is contained in:
Jaco 2022-11-21 19:27:29 +02:00 committed by GitHub
parent 88e841c3d8
commit a22e56aaa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 11 deletions

View File

@ -10,7 +10,7 @@ import type { Referendum, ReferendumProps as Props } from '../types';
import React, { useMemo } from 'react';
import usePreimage, { getPreimageHash } from '@polkadot/app-preimages/usePreimage';
import { CallExpander, LinkExternal, Progress } from '@polkadot/react-components';
import { CallExpander, Progress } from '@polkadot/react-components';
import { useTranslation } from '../translate';
import Deposits from './Deposits';
@ -135,12 +135,6 @@ function Ongoing ({ isMember, members, palletReferenda, palletVote, value: { id,
preimage={preimage}
/>
</td>
<td className='links media--1000'>
<LinkExternal
data={id}
type='referenda'
/>
</td>
</>
);
}

View File

@ -66,9 +66,7 @@ function Tuple ({ palletReferenda, value: { id, info, track } }: Props): React.R
className='number'
colSpan={3}
/>
<td className='number'>
</td>
<td className='number' />
</>
);
}

View File

@ -5,6 +5,7 @@ import type { ReferendumProps as Props } from '../types';
import React, { useMemo } from 'react';
import { LinkExternal } from '@polkadot/react-components';
import { formatNumber } from '@polkadot/util';
import Killed from './RefKilled';
@ -30,6 +31,12 @@ function Referendum (props: Props): React.ReactElement<Props> {
<h1>{formatNumber(id)}</h1>
</td>
<Component {...props} />
<td className='links media--1000'>
<LinkExternal
data={id}
type='referenda'
/>
</td>
</tr>
);
}

View File

@ -53,7 +53,7 @@ function Referenda ({ className, members, palletReferenda, palletVote }: Props):
empty={referenda && t<string>('No active referenda')}
header={[
[trackName || t('referenda'), 'start', 2],
[undefined, undefined, 3]
[undefined, undefined, 6]
]}
key={
trackName