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

View file

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