From a2c9b76b1fb0caf2c6f011d742719982a26696b7 Mon Sep 17 00:00:00 2001 From: sh-wallet <137136919+sh-wallet@users.noreply.github.com> Date: Tue, 31 Dec 2024 14:24:40 +0530 Subject: [PATCH] chore : added ledger doc url --- packages/mobile/src/modals/ledger/index.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/mobile/src/modals/ledger/index.tsx b/packages/mobile/src/modals/ledger/index.tsx index 0ecb281a1d..4787659fed 100644 --- a/packages/mobile/src/modals/ledger/index.tsx +++ b/packages/mobile/src/modals/ledger/index.tsx @@ -4,6 +4,7 @@ import { AppState, AppStateStatus, Image, + Linking, Platform, Text, View, @@ -22,9 +23,9 @@ import LottieView from "lottie-react-native"; import { Button } from "components/button"; import { BlurButton } from "components/new/button/blur-button"; import { CheckIcon } from "components/new/icon/check"; -import Toast from "react-native-toast-message"; import { LedgerErrorView } from "./ledger-error-view"; import { LedgerNanoBLESelector } from "./ledger-selector"; +import Toast from "react-native-toast-message"; enum BLEPermissionGrantStatus { NotInit = "notInit", @@ -379,9 +380,19 @@ export const LedgerGranterModal: FunctionComponent<{ } textStyle={style.flatten(["color-white", "body3"]) as ViewStyle} onPress={() => - Toast.show({ - type: "error", - text1: "Under development", + Linking.canOpenURL( + "https://fetch.ai/docs/guides/fetch-network/asi-wallet/mobile-wallet/get-started#connect-ledger" + ).then((supported) => { + if (supported) { + Linking.openURL( + "https://fetch.ai/docs/guides/fetch-network/asi-wallet/mobile-wallet/get-started#connect-ledger" + ); + } else { + Toast.show({ + type: "error", + text1: "Unable to open browser", + }); + } }) } />