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:
Yongfeng LI 2022-05-30 15:07:26 +08:00 committed by GitHub
parent 3081a391ee
commit a07b57d273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -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',

View File

@ -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>
);
}

View File

@ -24,7 +24,8 @@ function Externals ({ className }: Props): React.ReactElement<Props> | null {
[t('external'), 'start'],
[t('proposer'), 'address'],
[t('locked')],
[]
[],
[undefined, 'media--1000']
]);
return (