From bb554e568d56621c5c34475693393c3e565c2d6f Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 25 Apr 2025 16:03:10 +0000 Subject: [PATCH] [NEB-211] Nebula: Hide tx button after transaction is confirmed (#6859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on enhancing the UI and functionality of the `ExecuteTransactionCard` component in the dashboard app. It includes visual improvements and adjustments to transaction handling. ### Detailed summary - Updated the border styling for child elements in the main `div`. - Changed text styles for labels (`From`, `To`, `Value`, `Status`, and `Transaction Hash`) to use `font-medium`. - Added a conditional rendering for the footer based on transaction status. - Improved transaction tracking event labels. - Refactored the transaction submission logic for clarity. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../components/ExecuteTransactionCard.tsx | 147 +++++++++--------- 1 file changed, 76 insertions(+), 71 deletions(-) diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ExecuteTransactionCard.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ExecuteTransactionCard.tsx index b817948efb9..cc2830b20f5 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/ExecuteTransactionCard.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/ExecuteTransactionCard.tsx @@ -95,10 +95,10 @@ export function ExecuteTransactionCardLayout(props: { {/* content */} -
+
{/* From */}
- From + From {account ? ( - To + To - Value + Value {toEther(BigInt(txData.value))} {chain.nativeCurrency?.symbol}
@@ -147,7 +147,7 @@ export function ExecuteTransactionCardLayout(props: { {/* Status */} {props.status.type !== "idle" && (
- Status + Status
- Transaction Hash + + Transaction Hash +
{explorer ? (
);