Add subsquare external links for Kusama (#7641)
* Add subsquare external links for Kusama * Fix object key order * Add external links for democracy external proposals
This commit is contained in:
parent
3081a391ee
commit
a07b57d273
@ -11,6 +11,7 @@ export default {
|
||||
Bifrost: 'bifrost',
|
||||
Karura: 'karura',
|
||||
Khala: 'khala',
|
||||
Kusama: 'kusama',
|
||||
kintsugi: 'kintsugi'
|
||||
},
|
||||
create: (chain: string, path: string, data: BN | number | string): string =>
|
||||
@ -20,6 +21,7 @@ export default {
|
||||
paths: {
|
||||
bounty: 'treasury/bounty',
|
||||
council: 'council/motion',
|
||||
external: 'democracy/external',
|
||||
proposal: 'democracy/proposal',
|
||||
referendum: 'democracy/referendum',
|
||||
tip: 'treasury/tip',
|
||||
|
||||
@ -5,7 +5,7 @@ import type { DeriveProposalExternal } from '@polkadot/api-derive/types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { AddressMini, Button } from '@polkadot/react-components';
|
||||
import { AddressMini, Button, LinkExternal } from '@polkadot/react-components';
|
||||
import { useCollectiveMembers } from '@polkadot/react-hooks';
|
||||
import { FormatBalance } from '@polkadot/react-query';
|
||||
|
||||
@ -49,6 +49,12 @@ function External ({ className = '', value: { image, imageHash, threshold } }: P
|
||||
)}
|
||||
</Button.Group>
|
||||
</td>
|
||||
<td className='links media--1000'>
|
||||
<LinkExternal
|
||||
data={imageHash}
|
||||
type='external'
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
@ -24,7 +24,8 @@ function Externals ({ className }: Props): React.ReactElement<Props> | null {
|
||||
[t('external'), 'start'],
|
||||
[t('proposer'), 'address'],
|
||||
[t('locked')],
|
||||
[]
|
||||
[],
|
||||
[undefined, 'media--1000']
|
||||
]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user