Fix RN indentation

This commit is contained in:
ok300
2023-11-13 17:42:24 +01:00
parent 09448a1f6a
commit 936e92923b
2 changed files with 18 additions and 18 deletions

View File

@@ -1,20 +1,20 @@
import { import {
listPayments, listPayments,
PaymentTypeFilter PaymentTypeFilter
} from "@breeztech/react-native-breez-sdk" } from "@breeztech/react-native-breez-sdk"
const exampleListPayments = async () => { const exampleListPayments = async () => {
// ANCHOR: list-payments // ANCHOR: list-payments
const payments = listPayments({}) const payments = listPayments({})
// ANCHOR_END: list-payments // ANCHOR_END: list-payments
} }
const exampleListPaymentsFiltered = async () => { const exampleListPaymentsFiltered = async () => {
// ANCHOR: list-payments-filtered // ANCHOR: list-payments-filtered
const payments = listPayments({ const payments = listPayments({
filters: [PaymentTypeFilter.SENT], filters: [PaymentTypeFilter.SENT],
fromTimestamp: 1696880000, fromTimestamp: 1696880000,
includeFailures: true includeFailures: true
}) })
// ANCHOR_END: list-payments-filtered // ANCHOR_END: list-payments-filtered
} }

View File

@@ -1,11 +1,11 @@
import { sendPayment } from "@breeztech/react-native-breez-sdk" import { sendPayment } from "@breeztech/react-native-breez-sdk"
const exampleSendLightningPayment = async () => { const exampleSendLightningPayment = async () => {
// ANCHOR: send-payment // ANCHOR: send-payment
const bolt11 = "bolt11 invoice" const bolt11 = "bolt11 invoice"
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount. // 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'. // The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
const amountMsat = 3000000 const amountMsat = 3000000
const response = await sendPayment({bolt11, amountMsat}) const response = await sendPayment({bolt11, amountMsat})
// ANCHOR_END: send-payment // ANCHOR_END: send-payment
} }