ghost-portal/packages/apps-config/src/links/subid.ts
Oleh Mell c90f35f65a
Add support for Sub.ID as an external link on accounts page (#6135)
* Update @subsocial/types

* Add suport for subId externl link on accounts page

* Revert "Change order"

This reverts commit 2af96cc1153c07085ddc4b7d0cac94b2bf813b5a.
2021-09-16 16:34:55 +02:00

33 lines
794 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import { externalLogos } from '../ui/logos';
export default {
chains: {
Altair: 'altair',
Bifrost: 'bifrost',
'Centrifuge Mainnet': 'centrifuge',
ChainX: 'chainx',
Edgeware: 'edgeware',
Karura: 'karura',
Khala: 'khala',
Kusama: 'kusama',
Polkadot: 'polkadot',
SORA: 'sora-substrate',
Shiden: 'shiden',
Statemine: 'statemine',
Subsocial: 'subsocial'
},
create: (_chain: string, _path: string, data: BN | number | string): string =>
`https://sub.id/#/${data.toString()}`,
isActive: true,
logo: externalLogos.subid as string,
paths: {
address: 'account'
},
url: 'https://sub.id'
};