Skip to content

Commit

Permalink
Fix Liberland tx history scene display
Browse files Browse the repository at this point in the history
Disable tx history for Liberland plugins and hide the explorer button if there is no explorer available
  • Loading branch information
peachbits committed Sep 4, 2023
1 parent 02914b2 commit 10b1556
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/themed/ExplorerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ export const ExplorerCard = (props: Props) => {
return (
<View>
<ButtonBox onPress={handlePress} paddingRem={1}>
<View style={styles.container}>
<CryptoIcon walletId={wallet.id} tokenId={tokenId} marginRem={[0.25, 0]} sizeRem={2.25} />
<EdgeText style={styles.explorerButtonText}>{lstrings.transaction_details_advance_details_show_explorer}</EdgeText>
</View>
{addressExplorer === '' ? null : (
<View style={styles.container}>
<CryptoIcon walletId={wallet.id} tokenId={tokenId} marginRem={[0.25, 0]} sizeRem={2.25} />
<EdgeText style={styles.explorerButtonText}>{lstrings.transaction_details_advance_details_show_explorer}</EdgeText>
</View>
)}
</ButtonBox>
<View style={styles.noTransactionContainer}>
<EdgeText style={styles.noTransactionText}>{lstrings.transaction_list_no_tx_support_yet}</EdgeText>
Expand Down
2 changes: 2 additions & 0 deletions src/constants/WalletAndCurrencyConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ export const SPECIAL_CURRENCY_INFO: {
alertMessage: lstrings.request_dot_minimum_notification_alert_body
},
isCustomTokensSupported: true,
isTransactionListUnsupported: true,
isImportKeySupported: true
},
liberlandtestnet: {
Expand All @@ -684,6 +685,7 @@ export const SPECIAL_CURRENCY_INFO: {
alertMessage: lstrings.request_dot_minimum_notification_alert_body
},
isCustomTokensSupported: true,
isTransactionListUnsupported: true,
isImportKeySupported: true
},
zcash: {
Expand Down

0 comments on commit 10b1556

Please sign in to comment.