From 3b95b61d0f6bf3d4ee38d2ca1b4ba1191a4d7319 Mon Sep 17 00:00:00 2001 From: srikanth716 Date: Tue, 15 Nov 2022 18:28:50 +0530 Subject: [PATCH] bugfix #187 --- locales/en.json | 16 +-- screens/Home/MyVcs/GetIdInputModal.tsx | 149 ++++++++++++++----------- screens/Home/MyVcs/IdInputModal.tsx | 6 + 3 files changed, 97 insertions(+), 74 deletions(-) diff --git a/locales/en.json b/locales/en.json index d0b9ed382b..f91964e872 100644 --- a/locales/en.json +++ b/locales/en.json @@ -19,12 +19,12 @@ "allowCameraButton": "Allow access to camera" }, "VcDetails": { - "idType":"ID type", - "nationalCard":"National Identity Card", + "idType": "ID type", + "nationalCard": "National Identity Card", "generatedOn": "Generated on", - "uin":"UIN", - "vid":"VID", - "idtype":"Idtype", + "uin": "UIN", + "vid": "VID", + "idtype": "Idtype", "status": "Status", "valid": "Valid", "photo": "Photo", @@ -103,12 +103,14 @@ "header": "Enter the MOSIP-provided UIN or VID of the {{vcLabel}} you wish to retrieve", "generateVc": "Generate {{vcLabel}}", "enterId": "Enter your {{idType}}", - "noUIN/VID": "Don't have your UIN/VID? Get it here" + "noUIN/VID": "Don't have your UIN/VID? Get it here", + "requestingOTP": "Requesting OTP..." }, "GetIdInputModal": { "header": "To retrieve your UIN or VID, enter your Application {{vcLabel}} number", "getUIN": "Get UIN/VID", "applicationId": "Application {{vcLabel}} number", + "requestingOTP": "Requesting OTP...", "qstnMarkToolTip" : "Application {{vcLabel}} Number is printed on the acknowledgment provided after enrollment" }, "OtpVerificationModal": { @@ -292,4 +294,4 @@ "allowAccess": "Allow access to camera" } } -} \ No newline at end of file +} diff --git a/screens/Home/MyVcs/GetIdInputModal.tsx b/screens/Home/MyVcs/GetIdInputModal.tsx index 1b04057790..f8acc2d38b 100644 --- a/screens/Home/MyVcs/GetIdInputModal.tsx +++ b/screens/Home/MyVcs/GetIdInputModal.tsx @@ -8,7 +8,9 @@ import { GetIdInputModalProps, useGetIdInputModal, } from './GetIdInputModalController'; +import { KeyboardAvoidingView, Platform } from 'react-native'; import { useTranslation } from 'react-i18next'; +import { MessageOverlay } from '../../../components/MessageOverlay'; export const GetIdInputModal: React.FC = (props) => { const { t } = useTranslation('GetIdInputModal'); @@ -20,74 +22,87 @@ export const GetIdInputModal: React.FC = (props) => { return ( - - - {t('header', { vcLabel: controller.vcLabel.singular })} - - - - - - {t('qstnMarkToolTip', { - vcLabel: controller.vcLabel.singular, - })} - - } - width={Dimensions.get('screen').width * 0.8} - height={Dimensions.get('screen').height * 0.2} - backgroundColor={'lightgray'} - withPointer={true} - skipAndroidStatusBar={true} - onOpen={controller.ACTIVATE_ICON_COLOR} - onClose={controller.DEACTIVATE_ICON_COLOR}> - {controller.isInvalid ? ( - - ) : ( - - )} - - } - errorStyle={{ color: Theme.Colors.errorMessage }} - errorMessage={controller.idError} - onChangeText={controller.INPUT_ID} - ref={(node) => !controller.idInputRef && controller.READY(node)} - /> - - -