Skip to content

Commit

Permalink
Merge pull request #821 from 3DStreet/remove-h-key-close-modal
Browse files Browse the repository at this point in the history
remove the h key to close modals that is not the help modal
  • Loading branch information
kfarr authored Sep 1, 2024
2 parents a22ce4b + 190959e commit 0e163a1
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 0e163a1

Please sign in to comment.