TP-31863 | selfie text fix and redirection to profile page on id card notification click

This commit is contained in:
Aman Chaturvedi
2023-07-01 17:22:54 +05:30
parent 34f9197822
commit 7a3a461162
4 changed files with 11 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ const IDCardImageCapture = () => {
</View>
<View style={[GenericStyles.p12, GenericStyles.fill, GenericStyles.row]}>
<Text style={GenericStyles.fill}>
Capture your image to create an ID card for customers reference.
Capture your selfie to create an ID card for customers reference.
</Text>
<View style={styles.chevron}>
<ArrowRightOutlineIcon fillColor={COLORS.TEXT.LIGHT} />

View File

@@ -26,7 +26,7 @@ const ReviewIDImage: React.FC<IReviewIDImage> = ({ imageUri, retakeImage, closeM
};
return (
<View style={[GenericStyles.fill, styles.container]}>
<NavigationHeader title="Review image" onBack={closeModal} />
<NavigationHeader title="Review selfie" onBack={closeModal} />
<View style={[GenericStyles.fill, GenericStyles.pv24]}>
<RNFastImage source={{ uri: imageUri }} style={{ height: '100%' }} resizeMode={'cover'} />
</View>

View File

@@ -108,6 +108,14 @@ const NotificationItem: React.FC<INotificationProps> = ({ data }) => {
navigateToScreen(BOTTOM_TAB_ROUTES.VisitPlan);
return;
}
if (
templateName === NotificationTypes.AGENT_ID_APPROVED_TEMPLATE ||
templateName === NotificationTypes.AGENT_ID_REJECTED_TEMPLATE
) {
navigateToScreen(BOTTOM_TAB_ROUTES.VisitPlan);
navigateToScreen(BOTTOM_TAB_ROUTES.Profile);
return;
}
if (!collectionCaseId || !clickable) {
return;
}

View File

@@ -195,7 +195,7 @@ const NotificationTemplate: React.FC<INotificationTemplateProps> = ({ data }) =>
ID card rejected!
</Heading>
<Text light>
Your ID card has been rejected. Please upload your picture again for the ID card
Your ID card has been rejected. Please upload your selfie again for the ID card
</Text>
</View>
);