TP-57732 | Agent ID Card and Cash collected redirection fixes

This commit is contained in:
ShriPrakashBajpai
2024-02-20 15:39:17 +05:30
parent b747d878ca
commit 3608e64172
5 changed files with 20 additions and 10 deletions

View File

@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}
def VERSION_CODE = 126
def VERSION_NAME = "2.7.8"
def VERSION_CODE = 127
def VERSION_NAME = "2.7.9"
android {
ndkVersion rootProject.ext.ndkVersion

View File

@@ -1,7 +1,7 @@
{
"name": "AV_APP",
"version": "2.7.8",
"buildNumber": "126",
"version": "2.7.9",
"buildNumber": "127",
"private": true,
"scripts": {
"android:dev": "yarn move:dev && react-native run-android",

View File

@@ -90,10 +90,12 @@ const AgentIdCard = () => {
return !originalImageUri && !optimizedImageUri;
}, [optimizedImageUri, originalImageUri]);
const isExternalAgency = agencyName && agencyCode !== NAVI_AGENCY_CODE;
const loaderConf = useMemo(()=>{
return [
{ width: 75, height: 25, style: { marginTop: 10, marginBottom: 20 } },
(isExternalAgency ? { width: 200, height: 25, style: { marginTop: 0, marginBottom: 20 } } : {}),
{ width: 0, height: 0, style: { marginTop: 280 } },
{ width: 150, height: 18, style: { marginTop: 15 } },
{ width: 200, height: 18, style: { marginTop: 20 } },
@@ -109,7 +111,7 @@ const AgentIdCard = () => {
<SafeAreaView>
<NavigationHeader onBack={backHandler} title={PAGE_TITLE} />
<View style={[GenericStyles.p24, GenericStyles.alignCenter, styles.container]}>
<View style={styles.avatarImage}>
<View style={[GenericStyles.absolute, isExternalAgency ? styles.mt120 : styles.mt70]}>
<Avatar
loading={false}
size={280}
@@ -147,7 +149,7 @@ const AgentIdCard = () => {
) : (
<>
<NaviLogoWithTextIcon />
{agencyName && agencyCode !== NAVI_AGENCY_CODE ? (
{isExternalAgency ? (
<>
<Text small bold style={styles.greyColor}>
in association with
@@ -188,8 +190,10 @@ const styles = StyleSheet.create({
lineLoader: {
borderRadius: 20,
},
avatarImage: {
...GenericStyles.absolute,
mt120: {
marginTop: 120,
},
mt70: {
marginTop: 70,
},
avatarMargin: {

View File

@@ -10,6 +10,7 @@ import { getDocumentList, sanitizeString } from '../../components/utlis/commonFu
import { navigateToScreen } from '../../components/utlis/navigationUtlis';
import { CashCollectedItemProps } from './interface';
import { CaseDetailStackEnum } from '@screens/caseDetails/CaseDetailStack';
import { PageRouteEnum } from '@screens/auth/ProtectedRouter';
const CashCollectedItem = (props: CashCollectedItemProps) => {
const { cashCollectedItem, isLast, caseDetails } = props;
@@ -27,7 +28,12 @@ const CashCollectedItem = (props: CashCollectedItemProps) => {
return (
<TouchableOpacity
activeOpacity={0.8}
onPress={() => navigateToScreen(CaseDetailStackEnum.COLLECTION_CASE_DETAIL, { caseId })}
onPress={() => {
navigateToScreen(PageRouteEnum.CASE_DETAIL_STACK, {
screen: CaseDetailStackEnum.COLLECTION_CASE_DETAIL,
params: { caseId },
});
}}
style={[
getShadowStyle(2),
GenericStyles.row,