diff --git a/src/components/form/components/GeolocationAddress.tsx b/src/components/form/components/GeolocationAddress.tsx index dff1429c..639fbc4c 100644 --- a/src/components/form/components/GeolocationAddress.tsx +++ b/src/components/form/components/GeolocationAddress.tsx @@ -1,6 +1,6 @@ import { Linking, StyleSheet, TouchableOpacity, View } from 'react-native'; import React, { useMemo } from 'react'; -import { IGeolocation } from '../../../screens/caseDetails/interface'; +import { GeolocationSource, IGeolocation } from '../../../screens/caseDetails/interface'; import { useAppDispatch, useAppSelector } from '../../../hooks'; import { getDistanceFromLatLonInKm, getGoogleMapUrl } from '../../utlis/commonFunctions'; import Text from '../../../../RN-UI-LIB/src/components/Text'; @@ -41,7 +41,7 @@ const GeolocationAddress: React.FC = ({ isFeedbackView, handlePageRouting, }) => { - const { latitude, longitude, capturedTimestamp, tag, id } = address; + const { latitude, longitude, capturedTimestamp, tag, id, primarySource } = address; const { deviceGeolocationCoordinate, prefilledAddressScreenTemplate } = useAppSelector( (state) => ({ deviceGeolocationCoordinate: state.foregroundService?.deviceGeolocationCoordinate, @@ -134,7 +134,7 @@ const GeolocationAddress: React.FC = ({ {tag} {roundoffRelativeDistanceBwLatLong ? ( - ({roundoffRelativeDistanceBwLatLong}km away) + ({roundoffRelativeDistanceBwLatLong} km away) ) : null} @@ -145,6 +145,12 @@ const GeolocationAddress: React.FC = ({ {addressTime} ) : null} + {(primarySource && primarySource === GeolocationSource.DATA_SUTRAM) ? ( + + + Skip Tracing + + ) : null} {!isFeedbackView ? ( isFeedbackPresent ? (