Add cosmos to session proposal modal

This commit is contained in:
Ilja 2022-02-25 17:05:44 +02:00
parent 580cb40b32
commit fbf5862121
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
/**
* Types
*/
export type TCosmosChain = keyof typeof COSMOS_MAINNET_CHAINS
/** /**
* Chains * Chains
*/ */

View File

@ -1,3 +1,4 @@
import { COSMOS_MAINNET_CHAINS, TCosmosChain } from '@/data/COSMOSData'
import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data'
import ModalStore from '@/store/ModalStore' import ModalStore from '@/store/ModalStore'
import { eip155Addresses } from '@/utils/EIP155WalletUtil' import { eip155Addresses } from '@/utils/EIP155WalletUtil'
@ -98,7 +99,12 @@ export default function SessionProposalModal() {
<Text h5>Blockchains</Text> <Text h5>Blockchains</Text>
<Text color="$gray400"> <Text color="$gray400">
{chains {chains
.map(chain => EIP155_CHAINS[chain as TEIP155Chain]?.name ?? chain) .map(
chain =>
EIP155_CHAINS[chain as TEIP155Chain]?.name ??
COSMOS_MAINNET_CHAINS[chain as TCosmosChain]?.name ??
chain
)
.join(', ')} .join(', ')}
</Text> </Text>
</Col> </Col>