TP-79857 | Allocation on geolocation

This commit is contained in:
yashmantri
2024-08-28 13:15:58 +05:30
parent d34e21ee5f
commit 30c1a4ee6f
4 changed files with 11 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ const GeolocationAddress: React.FC<IGeolocationAddress> = ({
</View>
{showSimilarGeolocationsCTA ? <ArrowSolidIcon rotateY={180} /> : null}
</View>
<Text dark ellipsizeMode="tail">Address sus wdgwud wdvwhdgw gduwygd uwgd wgdw dgw udw udgu wgd uwd wdgwuduw dwydgw</Text>
{!isFeedbackView ? (
<View style={[GenericStyles.mt8]}>
{isFeedbackPresent ? (

View File

@@ -41,6 +41,7 @@ export interface IAddressGeolocation {
loanAccountNumber: string;
customerReferenceId: string;
caseId: string;
tab: AddressGeolocationTabEnum;
};
};
}

View File

@@ -39,7 +39,7 @@ const PAGE_TITLE = 'All addresses';
const AddressGeolocation: React.FC<IAddressGeolocation> = ({ route: routeParams }) => {
const {
params: { loanAccountNumber, customerReferenceId, caseId },
params: { loanAccountNumber, customerReferenceId, caseId, tab = AddressGeolocationTabEnum.ADDRESS },
} = routeParams;
const { addressGeolocation, isLoading } = useAppSelector((state: RootState) => ({
@@ -96,6 +96,12 @@ const AddressGeolocation: React.FC<IAddressGeolocation> = ({ route: routeParams
dispatch(getUngroupedAddress(loanAccountNumber));
}, []);
useEffect(() => {
if (tab) {
setSelectedTab(tab);
}
}, [tab]);
const handleTabChange = (tab: string) => {
if (tab !== selectedTab) {
if (tab === AddressGeolocationTabEnum.GEOLOCATION) {

View File

@@ -11,6 +11,7 @@ import { RootState } from '@store';
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { CaseDetailStackEnum } from './CaseDetailStack';
import { AddressGeolocationTabEnum } from '@screens/addressGeolocation/constant';
interface IViewAddressSection {
caseId: string;
@@ -28,6 +29,7 @@ const ViewAddressSection = ({ caseId }: IViewAddressSection) => {
loanAccountNumber,
customerReferenceId,
caseId,
tab: AddressGeolocationTabEnum.GEOLOCATION
};
navigateToScreen(CaseDetailStackEnum.ADDRESS_GEO, commonParams);
};