mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: Lint
This commit is contained in:
parent
f14cbbf0e3
commit
60faf6c1a0
2 changed files with 1 additions and 14 deletions
|
@ -150,7 +150,6 @@
|
|||
"create_to": "To",
|
||||
"create_tx_size": "Transaction Size",
|
||||
"create_verify": "Verify on coinb.in",
|
||||
"details_insert_contact": "Insert Contact",
|
||||
"details_add_rec_add": "Add Recipient",
|
||||
"details_add_rec_rem": "Remove Recipient",
|
||||
"details_address": "Address",
|
||||
|
|
|
@ -7,7 +7,7 @@ import createHash from 'create-hash';
|
|||
import { SectionList, StyleSheet, Text, View } from 'react-native';
|
||||
import * as BlueElectrum from '../../blue_modules/BlueElectrum';
|
||||
import { satoshiToLocalCurrency } from '../../blue_modules/currency';
|
||||
import { BlueButtonLink, BlueLoading } from '../../BlueComponents';
|
||||
import { BlueLoading } from '../../BlueComponents';
|
||||
import { HDSegwitBech32Wallet } from '../../class';
|
||||
import { ContactList } from '../../class/contact-list';
|
||||
import { AbstractHDElectrumWallet } from '../../class/wallets/abstract-hd-electrum-wallet';
|
||||
|
@ -105,7 +105,6 @@ export default function PaymentCodesList() {
|
|||
const onToolTipPress = async (id: any, pc: string) => {
|
||||
if (String(id) === String(Actions.copyToClipboard)) {
|
||||
Clipboard.setString(pc);
|
||||
presentAlert({ message: loc.bip47.copied });
|
||||
}
|
||||
|
||||
if (String(id) === String(Actions.rename)) {
|
||||
|
@ -179,16 +178,6 @@ export default function PaymentCodesList() {
|
|||
);
|
||||
};
|
||||
|
||||
const navigateToPaymentCodes = () => {
|
||||
const foundWallet = wallets.find(w => w.getID() === walletID) as unknown as AbstractHDElectrumWallet;
|
||||
|
||||
// @ts-ignore idk how to fix
|
||||
navigation.navigate('PaymentCodeRoot', {
|
||||
screen: 'PaymentCode',
|
||||
params: { paymentCode: foundWallet.getBIP47PaymentCode() },
|
||||
});
|
||||
};
|
||||
|
||||
const onAddContactPress = async () => {
|
||||
try {
|
||||
const newPc = await prompt(loc.bip47.add_contact, loc.bip47.provide_payment_code, true, 'plain-text');
|
||||
|
@ -301,7 +290,6 @@ export default function PaymentCodesList() {
|
|||
</View>
|
||||
)}
|
||||
|
||||
<BlueButtonLink title={loc.bip47.my_payment_code} onPress={navigateToPaymentCodes} />
|
||||
<Button title={loc.bip47.add_contact} onPress={onAddContactPress} />
|
||||
</SafeArea>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue