Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Jul 25, 2024
1 parent 8d2cff7 commit 0c3faee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
12 changes: 0 additions & 12 deletions src/status/InvoicePending.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
import { Show } from "solid-js";

import BlockExplorer from "../components/BlockExplorer";
import LoadingSpinner from "../components/LoadingSpinner";
import { useGlobalContext } from "../context/Global";
import { usePayContext } from "../context/Pay";

const InvoicePending = () => {
const { t } = useGlobalContext();
const { swap, swapStatusTransaction } = usePayContext();
return (
<div>
<p>{t("invoice_pending")}</p>
<LoadingSpinner />
<Show when={swapStatusTransaction() !== null}>
<BlockExplorer
asset={swap().assetSend}
txId={swapStatusTransaction().id}
typeLabel="lockup_tx"
/>
</Show>
</div>
);
};
Expand Down
12 changes: 1 addition & 11 deletions src/status/TransactionConfirmed.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { Show } from "solid-js";

import BlockExplorer from "../components/BlockExplorer";
import ContractTransaction from "../components/ContractTransaction";
import LoadingSpinner from "../components/LoadingSpinner";
import { RBTC } from "../consts/Assets";
Expand Down Expand Up @@ -56,7 +53,7 @@ const ClaimRsk = ({

const TransactionConfirmed = () => {
const { t } = useGlobalContext();
const { swapStatusTransaction, swap } = usePayContext();
const { swap } = usePayContext();

if (swap().assetReceive === RBTC) {
if (swap().type === SwapType.Chain) {
Expand Down Expand Up @@ -91,13 +88,6 @@ const TransactionConfirmed = () => {
<h2>{t("tx_confirmed")}</h2>
<p>{t("tx_ready_to_claim")}</p>
<LoadingSpinner />
<Show when={swapStatusTransaction() !== null}>
<BlockExplorer
asset={swap().assetSend}
txId={swapStatusTransaction().id}
typeLabel="lockup_tx"
/>
</Show>
</div>
);
};
Expand Down

0 comments on commit 0c3faee

Please sign in to comment.