From 565929de5421faa8ee59643c13ba831acdb87e11 Mon Sep 17 00:00:00 2001 From: michael1011 Date: Thu, 28 Nov 2024 16:49:30 +0100 Subject: [PATCH] refactor: nicer screen for logs refunds --- src/components/ContractTransaction.tsx | 3 +- src/components/RefundButton.tsx | 2 + src/i18n/i18n.ts | 1 + src/pages/Refund.tsx | 11 +-- src/pages/RefundEvm.tsx | 118 ++++++++++++++++++++----- 5 files changed, 102 insertions(+), 33 deletions(-) diff --git a/src/components/ContractTransaction.tsx b/src/components/ContractTransaction.tsx index be8ec8e0..9fc5b480 100644 --- a/src/components/ContractTransaction.tsx +++ b/src/components/ContractTransaction.tsx @@ -9,6 +9,7 @@ import ConnectWallet, { ConnectAddress, SwitchNetwork } from "./ConnectWallet"; import LoadingSpinner from "./LoadingSpinner"; const ContractTransaction = (props: { + disabled?: boolean; onClick: () => Promise; children?: JSX.Element; showHr?: boolean; @@ -74,7 +75,7 @@ const ContractTransaction = (props: {