Skip to content

Commit

Permalink
chore: move status pages to ts
Browse files Browse the repository at this point in the history
part 6
  • Loading branch information
dni committed Jan 4, 2024
1 parent 7155177 commit bb95ab2
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const InvoiceFailedToPay = () => {
{t("failure_reason")}: {failureReason()}
</p>
<hr />
<Show when={!timeoutEta()} fallback={RefundEta}>
<Show when={!timeoutEta()} fallback={RefundEta()}>
<Refund swap={swap} />
</Show>
<Show when={swap().asset !== RBTC}>
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions src/status/InvoiceSet.jsx → src/status/InvoiceSet.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Show } from "solid-js";

import ContractTransaction from "../components/ContractTransaction";
import QrCode from "../components/QrCode";
import { BTC, RBTC } from "../consts";
Expand Down
2 changes: 1 addition & 1 deletion src/status/SwapCreated.jsx → src/status/SwapCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { denominations, formatAmount } from "../utils/denomination";
import { enableWebln } from "../utils/webln";

const SwapCreated = () => {
const payWeblnInvoice = async (pr) => {
const payWeblnInvoice = async (pr: string) => {
enableWebln(async () => {
const result = await window.webln.sendPayment(pr);
log.debug("webln payment result:", result);
Expand Down
4 changes: 2 additions & 2 deletions src/status/SwapExpired.jsx → src/status/SwapExpired.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SwapExpired = () => {
setTransactionToRefund(null);
fetcher(
"/getswaptransaction",
(res) => {
(res: any) => {
log.debug(`got swap transaction for ${swap().id}`);
setTransactionToRefund(res);
},
Expand Down Expand Up @@ -51,7 +51,7 @@ const SwapExpired = () => {
/>
<button
class="btn"
disabled={valid() ? "" : "disabled"}
disabled={!valid()}
onclick={() => refund(swap(), t)}>
{t("refund")}
</button>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bb95ab2

Please sign in to comment.