From c2fd121e1c4a66db48658249cfe08dba85adb703 Mon Sep 17 00:00:00 2001 From: Ganesh Suresh Patra Date: Tue, 27 Jan 2026 17:54:48 +0530 Subject: [PATCH 1/2] fix: updated bottomsheet for walletregistry app --- .../ui/components/BottomSheet/BottomSheet.tsx | 22 +++++--- .../ConnectWallet/ConnectWallet.tsx | 12 ++++- .../ConnectWallet/ConnectWallet.type.ts | 1 + .../ConnectWalletHeader.tsx | 9 ++-- .../ConnectWalletHeader.type.ts | 1 + .../ConnectWalletQrCode.tsx | 51 +++++++++++-------- .../ConnectWalletQrCode.type.ts | 3 +- .../modal/src/ui/components/Root/Root.tsx | 2 + 8 files changed, 65 insertions(+), 36 deletions(-) diff --git a/packages/modal/src/ui/components/BottomSheet/BottomSheet.tsx b/packages/modal/src/ui/components/BottomSheet/BottomSheet.tsx index ab37aa60a..d4fc8497c 100644 --- a/packages/modal/src/ui/components/BottomSheet/BottomSheet.tsx +++ b/packages/modal/src/ui/components/BottomSheet/BottomSheet.tsx @@ -6,23 +6,31 @@ import { BottomSheetProps } from "./BottomSheet.type"; */ function BottomSheet({ isShown, onClose, children, uiConfig, sheetClassName, showCloseButton = true }: BottomSheetProps) { const { borderRadiusType = "large" } = uiConfig; + + const handleClose = (e: React.MouseEvent) => { + e.stopPropagation(); + if (onClose) onClose(); + }; return ( <> {/* Backdrop */}