diff --git a/src/components/escrow/EscrowFundedBanner.tsx b/src/components/escrow/EscrowFundedBanner.tsx index de7afcd..e3a8f48 100644 --- a/src/components/escrow/EscrowFundedBanner.tsx +++ b/src/components/escrow/EscrowFundedBanner.tsx @@ -1,18 +1,23 @@ import { useState } from "react"; +import { StellarTxLink } from "./StellarTxLink"; import { formatAmount, getEscrowFundedBannerStorageKey } from "./types"; interface EscrowFundedBannerProps { - escrowId: string; + adoptionId: string; + petName: string; amount: number; currency?: string; + txHash?: string; } export function EscrowFundedBanner({ - escrowId, + adoptionId, + petName, amount, currency, + txHash, }: EscrowFundedBannerProps) { - const storageKey = getEscrowFundedBannerStorageKey(escrowId); + const storageKey = getEscrowFundedBannerStorageKey(adoptionId); const [dismissed, setDismissed] = useState( () => sessionStorage.getItem(storageKey) === "true", ); @@ -28,20 +33,28 @@ export function EscrowFundedBanner({ return (
-
-

+

+

Escrow funded

-

- {formatAmount(amount, currency)} is secured and ready for settlement. -

+
+ {petName}'s adoption fee of {formatAmount(amount, currency)} is secured. + {txHash && ( +
+ Tx: + +
+ )} +
); -} \ No newline at end of file +}