ghost-portal/packages/apps-config/src/ui/identityIcons/index.ts
Jaco 381814f8c0
specName icons for Kusama & Polkadot (#5498)
* specName icons for Kusama & Polkadot

* Remove unneeded overrides
2021-06-08 13:14:16 +02:00

28 lines
899 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
// overrides based on the actual software node type, valid values are one of -
// polkadot, substrate, beachball, robohash
export const identityNodes: Record<string, string> = [
['centrifuge chain', 'polkadot'],
['joystream-node', 'beachball'],
['parity-polkadot', 'polkadot']
].reduce((icons, [node, icon]): Record<string, string> => ({
...icons,
[node.toLowerCase().replace(/-/g, ' ')]: icon
}), {});
export const identitySpec: Record<string, string> = [
['kusama', 'polkadot'],
['polkadot', 'polkadot'],
['rococo', 'polkadot'],
['statemine', 'polkadot'],
['statemint', 'polkadot'],
['westend', 'polkadot'],
['westmint', 'polkadot']
].reduce((icons, [spec, icon]): Record<string, string> => ({
...icons,
[spec.toLowerCase().replace(/-/g, ' ')]: icon
}), {});