Referenda links move) (#8386)
This commit is contained in:
parent
88e841c3d8
commit
a22e56aaa7
@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -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' />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user