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 && (
-
- )}
);
};
diff --git a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatchContainer.tsx b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatchContainer.tsx
index 88df33146..7e25992d7 100644
--- a/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatchContainer.tsx
+++ b/src/components/ObsDetailsDefaultMode/SavedMatch/SavedMatchContainer.tsx
@@ -33,8 +33,6 @@ const SavedMatchContainer = ( {
{}}
/>
);
};