From 9ee3929e5085913a7e2eee42566dc8e84cb259e4 Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 21 Jun 2023 18:41:43 +0200 Subject: [PATCH 1/3] styles -> bootstrap classes --- .../src/app/components/SubmitButton.tsx | 55 ++++++++++--------- .../src/app/views/CaptureKeyView.tsx | 2 +- apps/etherscan/src/app/views/ErrorView.tsx | 15 ++--- apps/etherscan/src/app/views/ReceiptsView.tsx | 44 ++++++--------- apps/etherscan/src/app/views/VerifyView.tsx | 9 +-- 5 files changed, 56 insertions(+), 69 deletions(-) diff --git a/apps/etherscan/src/app/components/SubmitButton.tsx b/apps/etherscan/src/app/components/SubmitButton.tsx index 69286e2ee8..38a5c07f08 100644 --- a/apps/etherscan/src/app/components/SubmitButton.tsx +++ b/apps/etherscan/src/app/components/SubmitButton.tsx @@ -15,33 +15,34 @@ export const SubmitButton: React.FC = ({ disable = true }) => { return ( - -
- -
-
+
+ {!isSubmitting && text} + {isSubmitting && ( +
+
+ )} +
+ + + ) } diff --git a/apps/etherscan/src/app/views/CaptureKeyView.tsx b/apps/etherscan/src/app/views/CaptureKeyView.tsx index 22e9c65baa..360d37b5a6 100644 --- a/apps/etherscan/src/app/views/CaptureKeyView.tsx +++ b/apps/etherscan/src/app/views/CaptureKeyView.tsx @@ -37,7 +37,7 @@ export const CaptureKeyView: React.FC = () => { > {({ errors, touched, handleSubmit }) => (
-
+
{ return ( -
+
Error page -
Sorry, something unexpected happened.
+
Sorry, something unexpected happened.
Please raise an issue:{" "} Here diff --git a/apps/etherscan/src/app/views/ReceiptsView.tsx b/apps/etherscan/src/app/views/ReceiptsView.tsx index 0e8eba1d79..c408f56f73 100644 --- a/apps/etherscan/src/app/views/ReceiptsView.tsx +++ b/apps/etherscan/src/app/views/ReceiptsView.tsx @@ -92,10 +92,7 @@ export const ReceiptsView: React.FC = () => { > {({ errors, touched, handleSubmit, handleChange }) => ( -
+
{
- { - handleChange(e) - if (e.target.checked) setIsProxyContractReceipt(true) - else setIsProxyContractReceipt(false) - }} - /> - -
+ { + handleChange(e) + if (e.target.checked) setIsProxyContractReceipt(true) + else setIsProxyContractReceipt(false) + }} + /> + +
)}
@@ -148,7 +140,7 @@ export const ReceiptsView: React.FC = () => { tooltipId='etherscan-clear-receipts' placement='bottom' > - +
) @@ -160,9 +152,9 @@ export const ReceiptsView: React.FC = () => { const ReceiptsTable: React.FC<{ receipts: Receipt[] }> = ({ receipts }) => { return ( -
+
Receipts
- +
diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index a2510eeb0f..3caa2818cc 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -260,8 +260,7 @@ export const VerifyView: React.FC = ({ >
Status