diff --git a/frontends/web/src/components/dialog/dialog.tsx b/frontends/web/src/components/dialog/dialog.tsx index fe8b877d00..f6cfe11401 100644 --- a/frontends/web/src/components/dialog/dialog.tsx +++ b/frontends/web/src/components/dialog/dialog.tsx @@ -28,7 +28,6 @@ type TProps = { large?: boolean; slim?: boolean; centered?: boolean; - disableEscape?: boolean; onClose?: (e?: Event) => void; children: React.ReactNode; open: boolean; @@ -41,7 +40,6 @@ export const Dialog = ({ large, slim, centered, - disableEscape, onClose, children, open, @@ -169,10 +167,10 @@ export const Dialog = ({ if (!renderDialog) { return; } - if (!disableEscape) { + if (onClose !== undefined) { deactivate(true); } - }, [renderDialog, disableEscape, deactivate])); + }, [renderDialog, onClose, deactivate])); useEffect(() => { if (open) { diff --git a/frontends/web/src/routes/account/receive/receive-bb01.tsx b/frontends/web/src/routes/account/receive/receive-bb01.tsx index 444cc8a681..58bf0746ae 100644 --- a/frontends/web/src/routes/account/receive/receive-bb01.tsx +++ b/frontends/web/src/routes/account/receive/receive-bb01.tsx @@ -253,7 +253,6 @@ export const Receive = ({
{account && <> diff --git a/frontends/web/src/routes/account/receive/receive.tsx b/frontends/web/src/routes/account/receive/receive.tsx index 7410455456..8d33797cf1 100644 --- a/frontends/web/src/routes/account/receive/receive.tsx +++ b/frontends/web/src/routes/account/receive/receive.tsx @@ -292,9 +292,8 @@ export const Receive = ({ { setVerifying(false); } : undefined} diff --git a/frontends/web/src/routes/buy/pocket.tsx b/frontends/web/src/routes/buy/pocket.tsx index b64f028a21..ca9ce56d3f 100644 --- a/frontends/web/src/routes/buy/pocket.tsx +++ b/frontends/web/src/routes/buy/pocket.tsx @@ -245,7 +245,6 @@ export const Pocket = ({ code }: TProps) => {
{t('buy.pocket.verifyBitBox02')}