Skip to content

Commit

Permalink
remove the h key to close modals that is not the help modal
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Sep 1, 2024
1 parent a22ce4b commit 190959e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ const PaymentModal = ({ isOpen, onClose }) => {
};

return (
<Modal
className={styles.modalWrapper}
isOpen={isOpen}
onClose={onClose}
extraCloseKeyCode={72}
>
<Modal className={styles.modalWrapper} isOpen={isOpen} onClose={onClose}>
<div className={styles.paymentDetails}>
<h3>Unlock Geospatial Features with a free 30 day trial</h3>
<h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ const ProfileModal = ({ isOpen, onClose }) => {
};

return (
<Modal
className={styles.modalWrapper}
isOpen={isOpen}
onClose={onClose}
extraCloseKeyCode={72}
>
<Modal className={styles.modalWrapper} isOpen={isOpen} onClose={onClose}>
<div className={styles.contentWrapper}>
<h2 className={styles.title}>3DStreet Cloud Account</h2>
<div className={styles.content}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ function ScreenshotModal({ isOpen, onClose }) {
className={styles.screenshotModalWrapper}
isOpen={isOpen}
onClose={onClose}
extraCloseKeyCode={72}
title={'Share scene'}
titleElement={
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import styles from './SignInModal.module.scss';
import { signIn, signInMicrosoft } from '../../../api';

const SignInModal = ({ isOpen, onClose }) => (
<Modal
className={styles.modalWrapper}
isOpen={isOpen}
onClose={onClose}
extraCloseKeyCode={72}
>
<Modal className={styles.modalWrapper} isOpen={isOpen} onClose={onClose}>
<div className={styles.contentWrapper}>
<h2 className={styles.title}>Sign in to 3DStreet Cloud</h2>
<div className={styles.content}>
Expand Down

0 comments on commit 190959e

Please sign in to comment.