Skip to content

Commit

Permalink
CR: update
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Nov 6, 2024
1 parent e5d3309 commit d88f245
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -28,17 +29,22 @@ export const ExplorerInfoLinks = ({id, type}: {id: string; type: 'token' | 'pool

<View style={styles.linkGroup}>
<TouchableOpacity onPress={() => handleOpenLink(Explorers.Explorer.CardanoScan)}>
<Text style={styles.link}>Cardanoscan</Text>
<Text style={styles.link}>{explorerNames[Explorers.Explorer.CardanoScan]}</Text>
</TouchableOpacity>

<TouchableOpacity onPress={() => handleOpenLink(Explorers.Explorer.CExplorer)}>
<Text style={styles.link}>Adaex</Text>
<Text style={styles.link}>{explorerNames[Explorers.Explorer.CExplorer]}</Text>
</TouchableOpacity>
</View>
</View>
)
}

const explorerNames = {
[Explorers.Explorer.CardanoScan]: 'Cardanoscan',
[Explorers.Explorer.CExplorer]: 'Adaex',
}

const useStyles = () => {
const {atoms, color} = useTheme()

Expand Down

0 comments on commit d88f245

Please sign in to comment.