From 45132e0377e36fb4727512fdb18e9abd8f076a0c Mon Sep 17 00:00:00 2001 From: James Pierog Date: Mon, 21 Mar 2022 09:58:40 +0800 Subject: [PATCH] used prettier on modified files --- components/generate-invoice.tsx | 6 +++++- components/receive-amount.tsx | 2 +- components/receive-no-amount.tsx | 5 ++--- package.json | 2 +- pages/[username].tsx | 2 +- pages/index.css | 2 +- yarn.lock | 8 ++++---- 7 files changed, 15 insertions(+), 12 deletions(-) diff --git a/components/generate-invoice.tsx b/components/generate-invoice.tsx index cfaf55c6..29df9795 100644 --- a/components/generate-invoice.tsx +++ b/components/generate-invoice.tsx @@ -12,7 +12,11 @@ type LnInvoiceObject = { } const LN_INVOICE_CREATE_ON_BEHALF_OF_RECIPIENT = gql` - mutation lnInvoiceCreateOnBehalfOfRecipient($walletId: WalletId!, $amount: SatAmount!, $memo: Memo) { + mutation lnInvoiceCreateOnBehalfOfRecipient( + $walletId: WalletId! + $amount: SatAmount! + $memo: Memo + ) { mutationData: lnInvoiceCreateOnBehalfOfRecipient( input: { recipientWalletId: $walletId, amount: $amount, memo: $memo } ) { diff --git a/components/receive-amount.tsx b/components/receive-amount.tsx index 872f3018..d5cb825f 100644 --- a/components/receive-amount.tsx +++ b/components/receive-amount.tsx @@ -20,7 +20,7 @@ const satsFormatter = new Intl.NumberFormat("en-US", { export default function ReceiveAmount({ recipientWalletId, recipientWalletCurrency, - memo + memo, }: { recipientWalletId: string recipientWalletCurrency: string diff --git a/components/receive-no-amount.tsx b/components/receive-no-amount.tsx index cecfe684..3d8f4104 100644 --- a/components/receive-no-amount.tsx +++ b/components/receive-no-amount.tsx @@ -29,7 +29,7 @@ const LN_NOAMOUNT_INVOICE_CREATE_ON_BEHALF_OF_RECIPIENT = gql` export default function ReceiveNoAmount({ recipientWalletId, onSetAmountClick, - memo + memo, }: { recipientWalletId: string onSetAmountClick: () => void @@ -44,7 +44,7 @@ export default function ReceiveNoAmount({ useEffect(() => { createInvoice({ - variables: { memo: memo, walletId: recipientWalletId } + variables: { memo: memo, walletId: recipientWalletId }, }) }, [createInvoice, recipientWalletId, memo]) @@ -64,7 +64,6 @@ export default function ReceiveNoAmount({ invoice = invoiceData.invoice } - return ( <> {loading &&
Loading...
} diff --git a/package.json b/package.json index eab1dcd8..90a4a95b 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,6 @@ "@types/prettier": "^2.4.1", "@types/react-dev-utils": "^9.0.7", "@types/react-lottie": "^1.2.6", - "prettier": "^2.4.1" + "prettier": "2.6.0" } } diff --git a/pages/[username].tsx b/pages/[username].tsx index 2712ff72..8df5358f 100644 --- a/pages/[username].tsx +++ b/pages/[username].tsx @@ -25,7 +25,7 @@ const RECIPIENT_WALLET_ID = gql` export default function Receive() { const router = useRouter() const { username, amount } = router.query - + const [memo, setMemo] = useState("") const debouncedMemo = useDebouncedCallback((memo) => { setMemo(memo) diff --git a/pages/index.css b/pages/index.css index cdb0b7e5..9517764d 100644 --- a/pages/index.css +++ b/pages/index.css @@ -89,4 +89,4 @@ code { .memo { flex-grow: 2; max-width: 300px; -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index afb30b39..6b224614 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3510,10 +3510,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@^2.4.1: - version "2.5.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.0.tgz#a6370e2d4594e093270419d9cc47f7670488f893" - integrity sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg== +prettier@2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.0.tgz#12f8f504c4d8ddb76475f441337542fa799207d4" + integrity sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A== process@0.11.10: version "0.11.10"