From b9a9495c61bde6dbcf1a01ab4ce9bfc735694d44 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 8 Nov 2021 09:07:52 -0300 Subject: [PATCH] Add loading indicator --- src/transaction/Trace.tsx | 42 +++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/src/transaction/Trace.tsx b/src/transaction/Trace.tsx index 86425d6..7e9053c 100644 --- a/src/transaction/Trace.tsx +++ b/src/transaction/Trace.tsx @@ -36,23 +36,31 @@ const Trace: React.FC = ({ txData, resolvedAddresses }) => { return (
-
- -
-
- {traces?.map((t, i, a) => ( - - ))} -
+ {traces ? ( + <> +
+ +
+
+ {traces.map((t, i, a) => ( + + ))} +
+ + ) : ( +
+
+
+ )}
);