From 3c986fe3c22c4238119374b868055d0689d4d040 Mon Sep 17 00:00:00 2001 From: "Jason.Stone" Date: Wed, 26 Feb 2025 10:00:09 +0000 Subject: [PATCH] multi close (x) fixed --- components/TxSummaryDialog/index.tsx | 51 +++++++++++----------------- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/components/TxSummaryDialog/index.tsx b/components/TxSummaryDialog/index.tsx index 21e65685..c1fe8f08 100644 --- a/components/TxSummaryDialog/index.tsx +++ b/components/TxSummaryDialog/index.tsx @@ -2,6 +2,7 @@ import { Box, Button, Dialog, + DialogClose, DialogContent, Flex, keyframes, @@ -9,7 +10,6 @@ import { } from "@livepeer/design-system"; import { sentenceCase } from "change-case"; import { useExplorerStore } from "hooks"; -import CloseIcon from "../../public/img/close.svg"; const rotate = keyframes({ "100%": { transform: "rotate(360deg)" }, @@ -23,29 +23,15 @@ const Index = () => { } return ( - - - - - - + { + if (!open) { + clearLatestTransaction(); + } + }} + > + {latestTransaction?.error ? ( ) : ( @@ -92,14 +78,15 @@ const Index = () => { ? `${sentenceCase(latestTransaction?.error)}.` : "Error with transaction, please check your inputs and try again."} - + + + ) : ( Confirm latest transaction in your wallet.