From 936e92923b7303938ff21a4c3a68d0a199014ea6 Mon Sep 17 00:00:00 2001 From: ok300 <106775972+ok300@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:42:24 +0100 Subject: [PATCH] Fix RN indentation --- snippets/react-native/list_payments.ts | 24 ++++++++++++------------ snippets/react-native/send_payment.ts | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/snippets/react-native/list_payments.ts b/snippets/react-native/list_payments.ts index 30aadb6..61b0353 100644 --- a/snippets/react-native/list_payments.ts +++ b/snippets/react-native/list_payments.ts @@ -1,20 +1,20 @@ import { - listPayments, - PaymentTypeFilter + listPayments, + PaymentTypeFilter } from "@breeztech/react-native-breez-sdk" const exampleListPayments = async () => { - // ANCHOR: list-payments - const payments = listPayments({}) - // ANCHOR_END: list-payments + // ANCHOR: list-payments + const payments = listPayments({}) + // ANCHOR_END: list-payments } const exampleListPaymentsFiltered = async () => { - // ANCHOR: list-payments-filtered - const payments = listPayments({ - filters: [PaymentTypeFilter.SENT], - fromTimestamp: 1696880000, - includeFailures: true - }) - // ANCHOR_END: list-payments-filtered + // ANCHOR: list-payments-filtered + const payments = listPayments({ + filters: [PaymentTypeFilter.SENT], + fromTimestamp: 1696880000, + includeFailures: true + }) + // ANCHOR_END: list-payments-filtered } diff --git a/snippets/react-native/send_payment.ts b/snippets/react-native/send_payment.ts index 7d29ba0..f7f6b43 100644 --- a/snippets/react-native/send_payment.ts +++ b/snippets/react-native/send_payment.ts @@ -1,11 +1,11 @@ import { sendPayment } from "@breeztech/react-native-breez-sdk" const exampleSendLightningPayment = async () => { - // ANCHOR: send-payment + // ANCHOR: send-payment const bolt11 = "bolt11 invoice" - // The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount. - // The amountMsat is required in case an amount is not specified in the bolt11 invoice'. - const amountMsat = 3000000 - const response = await sendPayment({bolt11, amountMsat}) - // ANCHOR_END: send-payment + // The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount. + // The amountMsat is required in case an amount is not specified in the bolt11 invoice'. + const amountMsat = 3000000 + const response = await sendPayment({bolt11, amountMsat}) + // ANCHOR_END: send-payment }