Skip to content

Commit

Permalink
simplify geo modal access logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed May 30, 2024
1 parent af003ab commit 3f7e49f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/editor/components/modals/GeoModal/GeoModal.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ import { useState, useCallback, useEffect } from 'react';
import styles from './GeoModal.module.scss';
import { Copy32Icon, Mangnifier20Icon } from '../../../icons';

import { useAuthContext } from '../../../contexts/index.js';
import Modal from '../Modal.jsx';
import { Button, Input } from '../../components/index.js';
import { GoogleMap, useJsApiLoader, Marker } from '@react-google-maps/api';
import { DownloadIcon } from '../../../icons/icons.jsx';
import GeoImg from '../../../../../ui_assets/geo.png';

const GeoModal = ({ isOpen, onClose }) => {
const { currentUser } = useAuthContext();
const isProUser = currentUser && currentUser.isPro;
const [markerPosition, setMarkerPosition] = useState({
lat: 0,
lng: 0,
Expand Down Expand Up @@ -129,14 +126,11 @@ const GeoModal = ({ isOpen, onClose }) => {
Cancel
</Button>
<Button
trailingicon={
isProUser ? <></> : <span className={styles.locked}>🔒</span>
}
leadingicon={<DownloadIcon />}
variant={'filled'}
onClick={onSaveHandler}
>
Update with 3D Map
Update Scene Location
</Button>
</div>
</div>
Expand Down

0 comments on commit 3f7e49f

Please sign in to comment.