From 12b84fecb36a5771084f2354563dc29aca432c30 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Tue, 19 Nov 2019 14:49:09 +0000 Subject: [PATCH] REF: lint --- WatchConnectivity.android.js | 2 +- screen/lnd/lndViewInvoice.js | 48 ++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/WatchConnectivity.android.js b/WatchConnectivity.android.js index f7156199..837f54b8 100644 --- a/WatchConnectivity.android.js +++ b/WatchConnectivity.android.js @@ -9,4 +9,4 @@ export default class WatchConnectivity { async handleLightningInvoiceCreateRequest(_walletIndex, _amount, _description) {} async sendWalletsToWatch() {} -} \ No newline at end of file +} diff --git a/screen/lnd/lndViewInvoice.js b/screen/lnd/lndViewInvoice.js index 8dfe05e6..9f2c2a85 100644 --- a/screen/lnd/lndViewInvoice.js +++ b/screen/lnd/lndViewInvoice.js @@ -143,32 +143,48 @@ export default class LNDViewInvoice extends Component { return ( - {(invoice.type === 'paid_invoice') && invoice.value && ( + {invoice.type === 'paid_invoice' && invoice.value && ( - - {invoice.value} - - + {invoice.value} + {loc.lndViewInvoice.sats} )} - {(invoice.type === 'user_invoice') && invoice.amt && ( + {invoice.type === 'user_invoice' && invoice.amt && ( - - {invoice.amt} - - + {invoice.amt} + {loc.lndViewInvoice.sats} )} - {!invoice.ispaid && invoice.memo && invoice.memo.length > 0 && ( - + {!invoice.ispaid && invoice.memo && invoice.memo.length > 0 && ( + {invoice.memo} )} - + {loc.lndViewInvoice.has_been_paid} - {invoice.payment_preimage && typeof invoice.payment_preimage === 'string' && ( @@ -194,14 +209,11 @@ export default class LNDViewInvoice extends Component { style={{ flexDirection: 'row', alignItems: 'center' }} onPress={() => this.setState({ showPreimageQr: true })} > - - {loc.send.create.details} - + {loc.send.create.details} )} - ); }