Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
used prettier on modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespierog committed Mar 21, 2022
1 parent b308e4e commit 45132e0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
6 changes: 5 additions & 1 deletion components/generate-invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
) {
Expand Down
2 changes: 1 addition & 1 deletion components/receive-amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const satsFormatter = new Intl.NumberFormat("en-US", {
export default function ReceiveAmount({
recipientWalletId,
recipientWalletCurrency,
memo
memo,
}: {
recipientWalletId: string
recipientWalletCurrency: string
Expand Down
5 changes: 2 additions & 3 deletions components/receive-no-amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,7 +44,7 @@ export default function ReceiveNoAmount({

useEffect(() => {
createInvoice({
variables: { memo: memo, walletId: recipientWalletId }
variables: { memo: memo, walletId: recipientWalletId },
})
}, [createInvoice, recipientWalletId, memo])

Expand All @@ -64,7 +64,6 @@ export default function ReceiveNoAmount({
invoice = invoiceData.invoice
}


return (
<>
{loading && <div className="loading">Loading...</div>}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion pages/[username].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pages/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ code {
.memo {
flex-grow: 2;
max-width: 300px;
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected]:
version "0.11.10"
Expand Down

0 comments on commit 45132e0

Please sign in to comment.