From d0881a9979bdba2d518561908c39122554125445 Mon Sep 17 00:00:00 2001 From: Yashvardhan Jagnani <60016972+jagnani73@users.noreply.github.com> Date: Fri, 1 Mar 2024 00:15:14 +0530 Subject: [PATCH] fix(tx receipt): responsiveness (#135) Co-authored-by: nguyenlejoe --- .../DecodedTransaction/DecodedTransaction.tsx | 19 +++++++++++-------- .../TransactionReceiptView.tsx | 4 ++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/Molecules/DecodedTransaction/DecodedTransaction.tsx b/src/components/Molecules/DecodedTransaction/DecodedTransaction.tsx index 973a5b20..1fdbf6d9 100644 --- a/src/components/Molecules/DecodedTransaction/DecodedTransaction.tsx +++ b/src/components/Molecules/DecodedTransaction/DecodedTransaction.tsx @@ -105,10 +105,13 @@ export const DecodedTransaction: React.FC = ({

No decoded Events.

) : ( events.map( - ({ name, details, nfts, protocol, tokens }) => ( + ( + { name, details, nfts, protocol, tokens }, + i + ) => (

@@ -135,7 +138,7 @@ export const DecodedTransaction: React.FC = ({ collection_address + token_identifier } - className="flex gap-x-4" + className="flex flex-col gap-x-4 sm:flex-row" >
@@ -164,7 +167,7 @@ export const DecodedTransaction: React.FC = ({
-
+
{handleHashInString( heading @@ -212,7 +215,7 @@ export const DecodedTransaction: React.FC = ({ )} {tokens?.length ? ( -
+
{tokens.map( ({ heading, @@ -268,7 +271,7 @@ export const DecodedTransaction: React.FC = ({
= ({ )} {details?.length ? ( -
+
{details.map( ({ heading, diff --git a/src/components/Organisms/TransactionReceiptView/TransactionReceiptView.tsx b/src/components/Organisms/TransactionReceiptView/TransactionReceiptView.tsx index eab38ac2..c3e2fd2e 100644 --- a/src/components/Organisms/TransactionReceiptView/TransactionReceiptView.tsx +++ b/src/components/Organisms/TransactionReceiptView/TransactionReceiptView.tsx @@ -89,7 +89,7 @@ export const TransactionReceiptView: React.FC = ({
-
+
Address @@ -137,7 +137,7 @@ export const TransactionReceiptView: React.FC = ({ <> ) : ( <> -
+
Transaction Fee