From 1b2f2f00519b49a3e9c22a578dd391e2b571b337 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Tue, 4 Jun 2024 10:50:15 -0400 Subject: [PATCH] ADD: Handoff TXID to be able to quickly browse on other devicess --- navigation/SendDetailsStackParamList.ts | 1 + screen/send/Confirm.tsx | 1 + screen/send/success.js | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/navigation/SendDetailsStackParamList.ts b/navigation/SendDetailsStackParamList.ts index 3c55ac788..d387b9f76 100644 --- a/navigation/SendDetailsStackParamList.ts +++ b/navigation/SendDetailsStackParamList.ts @@ -60,6 +60,7 @@ export type SendDetailsStackParamList = { Success: { fee: number; amount: number; + txid?: string; }; SelectWallet: { onWalletSelect: (wallet: TWallet) => void; diff --git a/screen/send/Confirm.tsx b/screen/send/Confirm.tsx index a0e910eb9..0a80c82b2 100644 --- a/screen/send/Confirm.tsx +++ b/screen/send/Confirm.tsx @@ -211,6 +211,7 @@ const Confirm: React.FC = () => { navigate('Success', { fee: Number(fee), amount, + txid, }); dispatch({ type: ActionType.SET_LOADING, payload: false }); diff --git a/screen/send/success.js b/screen/send/success.js index 9c2e150ad..4840d9944 100644 --- a/screen/send/success.js +++ b/screen/send/success.js @@ -12,6 +12,7 @@ import SafeArea from '../../components/SafeArea'; import { useTheme } from '../../components/themes'; import loc from '../../loc'; import { BitcoinUnit } from '../../models/bitcoinUnits'; +import HandOffComponent from '../../components/HandOffComponent'; const Success = () => { const pop = () => { @@ -19,7 +20,7 @@ const Success = () => { }; const { colors } = useTheme(); const { getParent } = useNavigation(); - const { amount, fee, amountUnit = BitcoinUnit.BTC, invoiceDescription = '', onDonePressed = pop } = useRoute().params; + const { amount, fee, amountUnit = BitcoinUnit.BTC, invoiceDescription = '', onDonePressed = pop, txid } = useRoute().params; const stylesHook = StyleSheet.create({ root: { backgroundColor: colors.elevated, @@ -47,6 +48,13 @@ const Success = () => {