TP-79857 | Allocation on geolocation
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
@@ -41,6 +41,7 @@ export interface IAddressGeolocation {
|
||||
loanAccountNumber: string;
|
||||
customerReferenceId: string;
|
||||
caseId: string;
|
||||
tab: AddressGeolocationTabEnum;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user