From acdc13c7ac5773cef116e6eaef0dc080b34b4f3f Mon Sep 17 00:00:00 2001 From: Shri Prakash Bajpai Date: Mon, 22 Jan 2024 13:27:36 +0530 Subject: [PATCH] TP-54744 | Data Sutram GLs (#708) --- .../form/components/GeolocationAddress.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 ? (