DEL: Remove comments

This commit is contained in:
Marcos Rodriguez Velez 2024-03-13 17:46:22 -04:00
parent 76281e4e81
commit 29afad98bd
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7
2 changed files with 4 additions and 7 deletions

1
App.js
View file

@ -260,7 +260,6 @@ const App = () => {
message: contentType === ClipboardContentType.BITCOIN ? loc.wallets.clipboard_bitcoin : loc.wallets.clipboard_lightning,
options: [loc._.cancel, loc._.continue],
cancelButtonIndex: 0,
destructiveButtonIndex: undefined, // Add this if you have a destructive button, otherwise omit or set as undefined
},
buttonIndex => {
switch (buttonIndex) {

View file

@ -425,21 +425,19 @@ const WalletTransactions = ({ navigation }) => {
},
buttonIndex => {
switch (buttonIndex) {
case 0: // Cancel button
// Handle cancel, if necessary
case 0:
break;
case 1: // Choose photo
case 1:
choosePhoto();
break;
case 2: // Scan QR code
case 2:
scanQrHelper(navigate, onBarCodeRead);
break;
case 3: // Copy from clipboard, this case exists only if clipboard is not empty
case 3:
if (!isClipboardEmpty) {
copyFromClipboard();
}
break;
// Add more cases if there are additional buttons
}
},
);