From 3f7e49fcca614f15d0d7975c3bdd30c534375034 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Thu, 30 May 2024 16:40:51 -0700 Subject: [PATCH] simplify geo modal access logic --- .../components/modals/GeoModal/GeoModal.component.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/editor/components/modals/GeoModal/GeoModal.component.jsx b/src/editor/components/modals/GeoModal/GeoModal.component.jsx index 4dad06c7f..5bdb46426 100644 --- a/src/editor/components/modals/GeoModal/GeoModal.component.jsx +++ b/src/editor/components/modals/GeoModal/GeoModal.component.jsx @@ -3,7 +3,6 @@ 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'; @@ -11,8 +10,6 @@ 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, @@ -129,14 +126,11 @@ const GeoModal = ({ isOpen, onClose }) => { Cancel