Skip to content

Commit

Permalink
remove ability to click outside of send dialog to close
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntVal committed Mar 13, 2024
1 parent 2b460cb commit 9a8021a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -106,7 +108,13 @@ export function WalletSend({
return (
<Dialog onOpenChange={setIsOpen} open={isOpen}>
<DialogTrigger>{trigger}</DialogTrigger>
<DialogContent className="ui-text-white">
<DialogContent
className="ui-text-white"
onPointerDownOutside={(e: any) => e.preventDefault()}
>
<DialogClose className="ui-absolute ui-top-5 ui-right-10">
<CloseIcon className="ui-stroke-white/50" />
</DialogClose>
{sendTokensError ? (
<ErrorDisplay
title="ERROR!"
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/icons/close.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const CloseIcon = ({ className }: { className?: string }) => {
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="black"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
Expand Down

0 comments on commit 9a8021a

Please sign in to comment.