* add network selector and refactor * fr trad that didnot apprear before * with useRef * font-size * nit still failing * and that work .. but not what I need * giving up on the test :(
18 lines
505 B
TypeScript
18 lines
505 B
TypeScript
// Copyright 2019-2021 @polkadot/extension-ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { MetadataDefBase } from '@polkadot/extension-inject/types';
|
|
|
|
import networks from '@polkadot/networks';
|
|
|
|
const hashes: MetadataDefBase[] = networks
|
|
.filter(({ genesisHash }) => !!genesisHash.length)
|
|
.map((network) => ({
|
|
chain: network.displayName,
|
|
genesisHash: network.genesisHash[0],
|
|
icon: network.icon,
|
|
ss58Format: network.prefix
|
|
}));
|
|
|
|
export default hashes;
|