From 9a8021aff9f08bdafc4b9b2cb8c2d52eb5613ef6 Mon Sep 17 00:00:00 2001 From: Burnt Val Date: Wed, 13 Mar 2024 11:50:46 -0400 Subject: [PATCH] remove ability to click outside of send dialog to close --- .../components/WalletSend/WalletSend.tsx | 10 +++++++++- packages/ui/src/icons/close.tsx | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx b/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx index 9ec6d130..6ec90ab2 100644 --- a/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx +++ b/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx @@ -11,6 +11,8 @@ import { formatBalance, isValidWalletAddress, truncateAddress } from "@/utils"; import { XION_TO_USDC_CONVERSION } from "../Overview"; import { ErrorDisplay } from "../ErrorDisplay"; import { DeliverTxResponse } from "@cosmjs/stargate"; +import { DialogClose } from "@burnt-labs/ui"; +import { CloseIcon } from "@burnt-labs/ui"; export function WalletSend({ trigger, @@ -106,7 +108,13 @@ export function WalletSend({ return ( {trigger} - + e.preventDefault()} + > + + + {sendTokensError ? ( { height="24" viewBox="0 0 24 24" fill="none" - stroke="black" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"