Skip to content

Commit

Permalink
chore : added ledger doc url
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-wallet committed Dec 31, 2024
1 parent d81c0a1 commit a2c9b76
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions packages/mobile/src/modals/ledger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
AppState,
AppStateStatus,
Image,
Linking,
Platform,
Text,
View,
Expand All @@ -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",
Expand Down Expand Up @@ -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",
});
}
})
}
/>
Expand Down

0 comments on commit a2c9b76

Please sign in to comment.