Skip to content

Commit

Permalink
fix(governance): missing info link (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored Aug 26, 2024
1 parent ed32df3 commit 58d2fee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const ConfirmTxWithHwModalContent = ({
walletManager.updateWalletHWDeviceInfo(meta.id, hwDeviceInfo)

const isCIP1694Supported = await wallet.ledgerSupportsCIP1694(false, hwDeviceInfo)
if (!isCIP1694Supported) {
onNotSupportedCIP1694?.()
if (!isCIP1694Supported && onNotSupportedCIP1694) {
onNotSupportedCIP1694()
return
}

Expand All @@ -122,8 +122,8 @@ const ConfirmTxWithHwModalContent = ({
walletManager.updateWalletHWDeviceInfo(meta.id, hwDeviceInfo)

const isCIP1694Supported = await wallet.ledgerSupportsCIP1694(true, hwDeviceInfo)
if (!isCIP1694Supported) {
onNotSupportedCIP1694?.()
if (!isCIP1694Supported && onNotSupportedCIP1694) {
onNotSupportedCIP1694()
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {Chain} from '@yoroi/types'
import React from 'react'
import {Linking, StyleSheet, View} from 'react-native'

import {Button, Text} from '../../../../../components'
import {Button, Spacer, Text} from '../../../../../components'
import {SafeArea} from '../../../../../components/SafeArea'
import {Space} from '../../../../../components/Space/Space'
import {TxHistoryRouteNavigation} from '../../../../../kernel/navigation'
import {useWalletManager} from '../../../../WalletManager/context/WalletManagerProvider'
import {useStrings} from '../../common'
import {LearnMoreLink, useStrings} from '../../common'
import {NoFunds} from '../../illustrations'

export const NoFundsScreen = () => {
Expand Down Expand Up @@ -39,6 +39,8 @@ export const NoFundsScreen = () => {
return (
<SafeArea style={styles.root}>
<View style={styles.center}>
<Spacer height={120} />

<NoFunds />

<Space height="lg" />
Expand All @@ -48,6 +50,10 @@ export const NoFundsScreen = () => {
<Space height="lg" />

<Button title={buttonText} textStyles={styles.button} shelleyTheme onPress={handleOnTryAgain} />

<Spacer fill />

<LearnMoreLink />
</View>
</SafeArea>
)
Expand Down

0 comments on commit 58d2fee

Please sign in to comment.