From 190959ec3ee72c68b2d3ae60f1da56f2cb59c7ba Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 1 Sep 2024 08:52:45 +0200 Subject: [PATCH] remove the h key to close modals that is not the help modal --- .../modals/PaymentModal/PaymentModal.component.jsx | 7 +------ .../modals/ProfileModal/ProfileModal.component.jsx | 7 +------ .../modals/ScreenshotModal/ScreenshotModal.component.jsx | 1 - .../modals/SignInModal/SignInModal.component.jsx | 7 +------ 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx b/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx index 5eb797f75..92caf637d 100644 --- a/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx +++ b/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx @@ -60,12 +60,7 @@ const PaymentModal = ({ isOpen, onClose }) => { }; return ( - +

Unlock Geospatial Features with a free 30 day trial

diff --git a/src/editor/components/modals/ProfileModal/ProfileModal.component.jsx b/src/editor/components/modals/ProfileModal/ProfileModal.component.jsx index a1e8b408d..df3f50664 100644 --- a/src/editor/components/modals/ProfileModal/ProfileModal.component.jsx +++ b/src/editor/components/modals/ProfileModal/ProfileModal.component.jsx @@ -40,12 +40,7 @@ const ProfileModal = ({ isOpen, onClose }) => { }; return ( - +

3DStreet Cloud Account

diff --git a/src/editor/components/modals/ScreenshotModal/ScreenshotModal.component.jsx b/src/editor/components/modals/ScreenshotModal/ScreenshotModal.component.jsx index 2fe84531a..e1b118c4f 100644 --- a/src/editor/components/modals/ScreenshotModal/ScreenshotModal.component.jsx +++ b/src/editor/components/modals/ScreenshotModal/ScreenshotModal.component.jsx @@ -186,7 +186,6 @@ function ScreenshotModal({ isOpen, onClose }) { className={styles.screenshotModalWrapper} isOpen={isOpen} onClose={onClose} - extraCloseKeyCode={72} title={'Share scene'} titleElement={ <> diff --git a/src/editor/components/modals/SignInModal/SignInModal.component.jsx b/src/editor/components/modals/SignInModal/SignInModal.component.jsx index d20ec4b19..85ae3e8b9 100644 --- a/src/editor/components/modals/SignInModal/SignInModal.component.jsx +++ b/src/editor/components/modals/SignInModal/SignInModal.component.jsx @@ -4,12 +4,7 @@ import styles from './SignInModal.module.scss'; import { signIn, signInMicrosoft } from '../../../api'; const SignInModal = ({ isOpen, onClose }) => ( - +

Sign in to 3DStreet Cloud