From 53915996ccfdf00e62095f0db01cbb15e9782c82 Mon Sep 17 00:00:00 2001 From: sepeterson <10458078+sepeterson@users.noreply.github.com> Date: Thu, 20 Nov 2025 16:20:13 -0600 Subject: [PATCH] MOB-512 no empty map --- .../SavedMatch/SavedMatch.tsx | 38 +++++-------------- .../SavedMatch/SavedMatchContainer.tsx | 2 - 2 files changed, 10 insertions(+), 30 deletions(-) diff --git a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx index d3c1e919f..f48cd2be3 100644 --- a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx +++ b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatch.tsx @@ -1,5 +1,4 @@ import { useNetInfo } from "@react-native-community/netinfo"; -import EmptyMapSection from "components/Match/EmptyMapSection"; import MatchHeader from "components/Match/MatchHeader"; import PhotosSection from "components/Match/PhotosSection"; import LocationSection from "components/ObsDetailsDefaultMode/LocationSection/LocationSection"; @@ -19,15 +18,11 @@ const cardClassBottom type Props = { observation: RealmObservation, navToTaxonDetails: ( ) => void, - isFetchingLocation: boolean, - handleAddLocationPressed: ( ) => void, } const SavedMatch = ( { observation, - navToTaxonDetails, - isFetchingLocation, - handleAddLocationPressed + navToTaxonDetails }: Props ) => { const { t } = useTranslation( ); const { isConnected } = useNetInfo( ); @@ -35,6 +30,12 @@ const SavedMatch = ( { const latitude = observation?.privateLatitude || observation?.latitude; const { taxon } = observation; + /* left todo + - fill in functionality in container + - add edit pencil + - fix type errors + */ + return ( @@ -47,16 +48,9 @@ const SavedMatch = ( { navToTaxonDetails={navToTaxonDetails} /> - {!latitude - ? ( - - ) - : ( - - )} + {latitude && ( + + )} ) } - {!latitude && ( -