Bläddra i källkod

removed old import from mapnavigator

cdmoss 2 år sedan
förälder
incheckning
79b10b8194

+ 1 - 1
src/components/Map/Panels/LandmarkDetailsPanel/LandmarkDetails.tsx

@@ -328,7 +328,7 @@ const LandmarkDetails: React.FC<LandmarkDetailsProps> = ({authNavigation, landma
     const determineModalHeight = () => {
         if (selectedImage > -1) 
             return Dimensions.get("window").height 
-        else if ((keyboardOpened) || editingEnabled || (!landmarkOwnedByUser(landmarkQuery?.data?.landmark) && landmarkQuery?.data?.landmark?.photos?.length == 0)) {
+        else if (keyboardOpened || editingEnabled || (!landmarkOwnedByUser(landmarkQuery?.data?.landmark) && landmarkQuery?.data?.landmark?.photos?.length == 0)) {
             return Dimensions.get("window").height * .4
         }
         else if (landmarkQuery?.data?.landmark?.photos?.length > 0) 

+ 1 - 1
src/navigation/MapNavigator.tsx

@@ -16,7 +16,7 @@ import { FilterPanel } from "../components/Map/Panels/FilterPanel/FilterPanel"
 import LandmarkDetails from "../components/Map/Panels/LandmarkDetailsPanel/LandmarkDetails"
 import { useAuth } from "../data/Auth/AuthContext"
 import { Landmark, useLandmarks } from '../data/landmarks'
-import { colors, lmTypes, md5ToUUID } from "../utils/GlobalUtils"
+import { colors, lmTypes, } from "../utils/GlobalUtils"
 import { MainTabsNavigationProp } from "./MainTabsNavigator"
 
 const MapStackNavigator = createNativeStackNavigator()