mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
Update lndViewInvoice.js
This commit is contained in:
parent
0b58cec973
commit
97b928349a
1 changed files with 12 additions and 3 deletions
|
@ -107,6 +107,8 @@ const LNDViewInvoice = () => {
|
|||
)[0];
|
||||
if (typeof updatedUserInvoice !== 'undefined') {
|
||||
setInvoiceStatusChanged(true);
|
||||
updatedUserInvoice.ispaid = true;
|
||||
updatedUserInvoice.payment_preimage = 'tttt';
|
||||
setParams({ invoice: updatedUserInvoice });
|
||||
setIsLoading(false);
|
||||
if (updatedUserInvoice.ispaid) {
|
||||
|
@ -216,7 +218,7 @@ const LNDViewInvoice = () => {
|
|||
description = invoice.memo;
|
||||
}
|
||||
return (
|
||||
<View style={[styles.root, stylesHook.root]}>
|
||||
<View style={[styles.root, styles.contentContainerStyle]}>
|
||||
<SuccessView
|
||||
amount={amount}
|
||||
amountUnit={BitcoinUnit.SATS}
|
||||
|
@ -286,7 +288,11 @@ const LNDViewInvoice = () => {
|
|||
return (
|
||||
<SafeBlueArea styles={[styles.root, stylesHook.root]}>
|
||||
<StatusBar barStyle="default" />
|
||||
<ScrollView style={[styles.root, stylesHook.root]} centerContent contentContainerStyle={stylesHook.root}>
|
||||
<ScrollView
|
||||
style={[styles.root, stylesHook.root]}
|
||||
centerContent
|
||||
contentContainerStyle={[styles.contentContainerStyle, stylesHook.root]}
|
||||
>
|
||||
{render()}
|
||||
</ScrollView>
|
||||
</SafeBlueArea>
|
||||
|
@ -297,6 +303,10 @@ const styles = StyleSheet.create({
|
|||
root: {
|
||||
flex: 1,
|
||||
},
|
||||
contentContainerStyle: {
|
||||
flex: 1,
|
||||
justifyContent: 'space-between',
|
||||
},
|
||||
qrCodeContainer: { borderWidth: 6, borderRadius: 8, borderColor: '#FFFFFF' },
|
||||
valueAmount: {
|
||||
flexDirection: 'row',
|
||||
|
@ -332,7 +342,6 @@ const styles = StyleSheet.create({
|
|||
marginBottom: 16,
|
||||
},
|
||||
detailsRoot: {
|
||||
flex: 1,
|
||||
justifyContent: 'flex-end',
|
||||
marginBottom: 24,
|
||||
alignItems: 'center',
|
||||
|
|
Loading…
Add table
Reference in a new issue