From d88f245db96897cee62c377a81d0d33c4aefb4fa Mon Sep 17 00:00:00 2001 From: Javier Bueno Date: Wed, 6 Nov 2024 10:14:58 +0100 Subject: [PATCH] CR: update --- .../src/features/ReviewTx/common/ExplorerInfoLinks.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/wallet-mobile/src/features/ReviewTx/common/ExplorerInfoLinks.tsx b/apps/wallet-mobile/src/features/ReviewTx/common/ExplorerInfoLinks.tsx index eaf3452544..d626c9350a 100644 --- a/apps/wallet-mobile/src/features/ReviewTx/common/ExplorerInfoLinks.tsx +++ b/apps/wallet-mobile/src/features/ReviewTx/common/ExplorerInfoLinks.tsx @@ -1,4 +1,5 @@ import {useTheme} from '@yoroi/theme' +import {Explorers} from '@yoroi/types' import * as React from 'react' import {Linking, StyleSheet, Text, TouchableOpacity, View} from 'react-native' @@ -28,17 +29,22 @@ export const ExplorerInfoLinks = ({id, type}: {id: string; type: 'token' | 'pool handleOpenLink(Explorers.Explorer.CardanoScan)}> - Cardanoscan + {explorerNames[Explorers.Explorer.CardanoScan]} handleOpenLink(Explorers.Explorer.CExplorer)}> - Adaex + {explorerNames[Explorers.Explorer.CExplorer]} ) } +const explorerNames = { + [Explorers.Explorer.CardanoScan]: 'Cardanoscan', + [Explorers.Explorer.CExplorer]: 'Adaex', +} + const useStyles = () => { const {atoms, color} = useTheme()