소스 검색

removed old import from mapnavigator

cdmoss 2 년 전
부모
커밋
79b10b8194
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/Map/Panels/LandmarkDetailsPanel/LandmarkDetails.tsx
  2. 1 1
      src/navigation/MapNavigator.tsx

+ 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()