react-native-timacare 3.3.55 → 3.3.57-cccd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +7 -2
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/RNTimacare.js +1 -1
- package/lib/commonjs/RNTimacare.js.flow +7 -1
- package/lib/commonjs/RNTimacare.js.map +1 -1
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +10 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/modal_confirm.svg +15 -0
- package/lib/commonjs/assets/icons/modal_notice.svg +74 -0
- package/lib/commonjs/assets/icons/modal_success.svg +55 -0
- package/lib/commonjs/assets/icons/modal_warning.svg +48 -0
- package/lib/commonjs/assets/icons/user_security.svg +10 -0
- package/lib/commonjs/assets/tts/Frame1000011947.png +0 -0
- package/lib/commonjs/components/AppModal.js +2 -0
- package/lib/commonjs/components/AppModal.js.flow +34 -0
- package/lib/commonjs/components/AppModal.js.map +1 -0
- package/lib/commonjs/components/ItemTimaOne.js +2 -0
- package/lib/commonjs/components/{ItemTimaOneV3.js.flow → ItemTimaOne.js.flow} +1 -1
- package/lib/commonjs/components/ItemTimaOne.js.map +1 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js +2 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js.flow +100 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js.map +1 -0
- package/lib/commonjs/components/ModalNotification/index.js +2 -0
- package/lib/commonjs/components/ModalNotification/index.js.flow +224 -0
- package/lib/commonjs/components/ModalNotification/index.js.map +1 -0
- package/lib/commonjs/components/ModalOptionLoan.js +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js.flow +15 -7
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
- package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
- package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +15 -7
- package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +7 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/NFC/OcrStart.js +2 -0
- package/lib/commonjs/screens/NFC/OcrStart.js.flow +171 -0
- package/lib/commonjs/screens/NFC/OcrStart.js.map +1 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js +2 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js.flow +563 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js.map +1 -0
- package/lib/commonjs/screens/SelectorStore.js +1 -1
- package/lib/commonjs/screens/SelectorStore.js.flow +7 -2
- package/lib/commonjs/screens/SelectorStore.js.map +1 -1
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +253 -187
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
- package/lib/commonjs/screens/camera/index.js +1 -1
- package/lib/commonjs/screens/camera/index.js.flow +50 -54
- package/lib/commonjs/screens/camera/index.js.map +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js.flow +10 -14
- package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +75 -54
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +77 -54
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/store.js +1 -1
- package/lib/commonjs/screens/detail-loan/store.js.flow +39 -7
- package/lib/commonjs/screens/detail-loan/store.js.map +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.flow +20 -4
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js +1 -1
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.flow +19 -4
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.flow +24 -29
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/store.js +1 -1
- package/lib/commonjs/screens/digital-lending/store.js.flow +113 -20
- package/lib/commonjs/screens/digital-lending/store.js.map +1 -1
- package/lib/commonjs/screens/eSign/Store.js +1 -1
- package/lib/commonjs/screens/eSign/Store.js.flow +69 -34
- package/lib/commonjs/screens/eSign/Store.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +33 -34
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js.flow +101 -85
- package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/commonjs/screens/full-submit/store.js +1 -1
- package/lib/commonjs/screens/full-submit/store.js.flow +157 -27
- package/lib/commonjs/screens/full-submit/store.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.flow +0 -1
- package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +15 -7
- package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +16 -7
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
- package/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +44 -23
- package/lib/commonjs/screens/home/Store.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +306 -298
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js.flow +111 -89
- package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.flow +67 -68
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +52 -52
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +20 -10
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js.flow +56 -23
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +43 -29
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -1
- package/lib/commonjs/screens/motobike/PolicyF88.js +1 -1
- package/lib/commonjs/screens/motobike/PolicyF88.js.flow +15 -6
- package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -1
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +1 -1
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +13 -3
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js.flow +56 -55
- package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
- package/lib/commonjs/screens/mrz-scanner/store.js +1 -1
- package/lib/commonjs/screens/mrz-scanner/store.js.flow +13 -3
- package/lib/commonjs/screens/mrz-scanner/store.js.map +1 -1
- package/lib/commonjs/screens/nationalID/Store.js +1 -1
- package/lib/commonjs/screens/nationalID/Store.js.flow +50 -29
- package/lib/commonjs/screens/nationalID/Store.js.map +1 -1
- package/lib/commonjs/screens/nationalID/index.js +1 -1
- package/lib/commonjs/screens/nationalID/index.js.flow +123 -219
- package/lib/commonjs/screens/nationalID/index.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/Store.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/Store.js.flow +44 -26
- package/lib/commonjs/screens/nationalIDBack/Store.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js.flow +129 -210
- package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
- package/lib/commonjs/screens/notification/ListLoanStore.js +1 -1
- package/lib/commonjs/screens/notification/ListLoanStore.js.flow +19 -4
- package/lib/commonjs/screens/notification/ListLoanStore.js.map +1 -1
- package/lib/commonjs/screens/notification/index.js +1 -1
- package/lib/commonjs/screens/notification/index.js.flow +0 -1
- package/lib/commonjs/screens/notification/index.js.map +1 -1
- package/lib/commonjs/screens/notification/store.js +1 -1
- package/lib/commonjs/screens/notification/store.js.flow +7 -2
- package/lib/commonjs/screens/notification/store.js.map +1 -1
- package/lib/commonjs/screens/personal/index.js +1 -1
- package/lib/commonjs/screens/personal/index.js.flow +21 -19
- package/lib/commonjs/screens/personal/index.js.map +1 -1
- package/lib/commonjs/screens/qualify/Store.js.flow +0 -1
- package/lib/commonjs/screens/qualify/Store.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/store.js +1 -1
- package/lib/commonjs/screens/quick-submit/store.js.flow +85 -15
- package/lib/commonjs/screens/quick-submit/store.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.flow +20 -4
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/store.js +1 -1
- package/lib/commonjs/screens/schedule-payment/store.js.flow +13 -5
- package/lib/commonjs/screens/schedule-payment/store.js.map +1 -1
- package/lib/commonjs/screens/selfie/SelfieStore.js +1 -1
- package/lib/commonjs/screens/selfie/SelfieStore.js.flow +25 -9
- package/lib/commonjs/screens/selfie/SelfieStore.js.map +1 -1
- package/lib/commonjs/screens/selfie/index.js +1 -1
- package/lib/commonjs/screens/selfie/index.js.flow +0 -1
- package/lib/commonjs/screens/selfie/index.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +17 -18
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/store.js +1 -1
- package/lib/commonjs/screens/sign-tima/store.js.flow +37 -7
- package/lib/commonjs/screens/sign-tima/store.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +36 -10
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +321 -609
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +21 -4
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +50 -54
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +31 -25
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +88 -82
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +25 -5
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +42 -25
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +63 -56
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +63 -55
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +50 -43
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +275 -341
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +82 -37
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js.flow +26 -21
- package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +19 -4
- package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js.flow +35 -16
- package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -1
- package/lib/commonjs/screens/v3/LoanBuyCar.js +1 -1
- package/lib/commonjs/screens/v3/LoanBuyCar.js.flow +35 -16
- package/lib/commonjs/screens/v3/LoanBuyCar.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +23 -26
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/cameraCrop.js +2 -0
- package/lib/commonjs/utils/cameraCrop.js.flow +96 -0
- package/lib/commonjs/utils/cameraCrop.js.map +1 -0
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/RNTimacare.js +1 -1
- package/lib/module/RNTimacare.js.map +1 -1
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/modal_confirm.svg +15 -0
- package/lib/module/assets/icons/modal_notice.svg +74 -0
- package/lib/module/assets/icons/modal_success.svg +55 -0
- package/lib/module/assets/icons/modal_warning.svg +48 -0
- package/lib/module/assets/icons/user_security.svg +10 -0
- package/lib/module/assets/tts/Frame1000011947.png +0 -0
- package/lib/module/components/AppModal.js +2 -0
- package/lib/module/components/AppModal.js.map +1 -0
- package/lib/module/components/ItemTimaOne.js +2 -0
- package/lib/module/components/ItemTimaOne.js.map +1 -0
- package/lib/module/components/ModalNotification/AlertGlobal.js +2 -0
- package/lib/module/components/ModalNotification/AlertGlobal.js.map +1 -0
- package/lib/module/components/ModalNotification/index.js +2 -0
- package/lib/module/components/ModalNotification/index.js.map +1 -0
- package/lib/module/components/ModalOptionLoan.js +1 -1
- package/lib/module/components/ModalOptionLoan.js.map +1 -1
- package/lib/module/components/ModalOptionLoanDigital.js +1 -1
- package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/NFC/OcrStart.js +2 -0
- package/lib/module/screens/NFC/OcrStart.js.map +1 -0
- package/lib/module/screens/NFC/ScanMRZ.js +2 -0
- package/lib/module/screens/NFC/ScanMRZ.js.map +1 -0
- package/lib/module/screens/SelectorStore.js +1 -1
- package/lib/module/screens/SelectorStore.js.map +1 -1
- package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
- package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
- package/lib/module/screens/camera/index.js +1 -1
- package/lib/module/screens/camera/index.js.map +1 -1
- package/lib/module/screens/cimb-sign/index.js +1 -1
- package/lib/module/screens/cimb-sign/index.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/module/screens/detail-loan/store.js +1 -1
- package/lib/module/screens/detail-loan/store.js.map +1 -1
- package/lib/module/screens/detail-loan-tima/InforLoan.js +1 -1
- package/lib/module/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/module/screens/detail-loan-tima/PaymentSchedule.js +1 -1
- package/lib/module/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
- package/lib/module/screens/digital-lending/Step6.js +1 -1
- package/lib/module/screens/digital-lending/Step6.js.map +1 -1
- package/lib/module/screens/digital-lending/store.js +1 -1
- package/lib/module/screens/digital-lending/store.js.map +1 -1
- package/lib/module/screens/eSign/Store.js +1 -1
- package/lib/module/screens/eSign/Store.js.map +1 -1
- package/lib/module/screens/eSign/index.js +1 -1
- package/lib/module/screens/eSign/index.js.map +1 -1
- package/lib/module/screens/full-submit/accept_policy.js +1 -1
- package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/module/screens/full-submit/store.js +1 -1
- package/lib/module/screens/full-submit/store.js.map +1 -1
- package/lib/module/screens/full-submit/update-info.js +1 -1
- package/lib/module/screens/full-submit/update-info.js.map +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -1
- package/lib/module/screens/home/Store.js +1 -1
- package/lib/module/screens/home/Store.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness/LivenessStore.js +1 -1
- package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/module/screens/liveness/index.js +1 -1
- package/lib/module/screens/liveness/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/module/screens/loan/UpdateLoan.js +1 -1
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -1
- package/lib/module/screens/motobike/PolicyF88.js +1 -1
- package/lib/module/screens/motobike/PolicyF88.js.map +1 -1
- package/lib/module/screens/motobike/ReviewLoanMotobike.js +1 -1
- package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -1
- package/lib/module/screens/mrz-scanner/index.js +1 -1
- package/lib/module/screens/mrz-scanner/index.js.map +1 -1
- package/lib/module/screens/mrz-scanner/store.js +1 -1
- package/lib/module/screens/mrz-scanner/store.js.map +1 -1
- package/lib/module/screens/nationalID/Store.js +1 -1
- package/lib/module/screens/nationalID/Store.js.map +1 -1
- package/lib/module/screens/nationalID/index.js +1 -1
- package/lib/module/screens/nationalID/index.js.map +1 -1
- package/lib/module/screens/nationalIDBack/Store.js +1 -1
- package/lib/module/screens/nationalIDBack/Store.js.map +1 -1
- package/lib/module/screens/nationalIDBack/index.js +1 -1
- package/lib/module/screens/nationalIDBack/index.js.map +1 -1
- package/lib/module/screens/notification/ListLoanStore.js +1 -1
- package/lib/module/screens/notification/ListLoanStore.js.map +1 -1
- package/lib/module/screens/notification/index.js +1 -1
- package/lib/module/screens/notification/index.js.map +1 -1
- package/lib/module/screens/notification/store.js +1 -1
- package/lib/module/screens/notification/store.js.map +1 -1
- package/lib/module/screens/personal/index.js +1 -1
- package/lib/module/screens/personal/index.js.map +1 -1
- package/lib/module/screens/qualify/Store.js.map +1 -1
- package/lib/module/screens/quick-submit/store.js +1 -1
- package/lib/module/screens/quick-submit/store.js.map +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/module/screens/schedule-payment/store.js +1 -1
- package/lib/module/screens/schedule-payment/store.js.map +1 -1
- package/lib/module/screens/selfie/SelfieStore.js +1 -1
- package/lib/module/screens/selfie/SelfieStore.js.map +1 -1
- package/lib/module/screens/selfie/index.js +1 -1
- package/lib/module/screens/selfie/index.js.map +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/module/screens/sign-tima/store.js +1 -1
- package/lib/module/screens/sign-tima/store.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/screens/uploadVideo/index.js +1 -1
- package/lib/module/screens/uploadVideo/index.js.map +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/module/screens/v3/AssetInformation.js +1 -1
- package/lib/module/screens/v3/AssetInformation.js.map +1 -1
- package/lib/module/screens/v3/LoanBuyCar.js +1 -1
- package/lib/module/screens/v3/LoanBuyCar.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/cameraCrop.js +2 -0
- package/lib/module/utils/cameraCrop.js.map +1 -0
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/RNTimacare.d.ts.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +6 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AppModal.d.ts +18 -0
- package/lib/typescript/components/AppModal.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOne.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -0
- package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts +30 -0
- package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts.map +1 -0
- package/lib/typescript/components/ModalNotification/index.d.ts +35 -0
- package/lib/typescript/components/ModalNotification/index.d.ts.map +1 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
- package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/NFC/OcrStart.d.ts +2 -0
- package/lib/typescript/screens/NFC/OcrStart.d.ts.map +1 -0
- package/lib/typescript/screens/NFC/ScanMRZ.d.ts +15 -0
- package/lib/typescript/screens/NFC/ScanMRZ.d.ts.map +1 -0
- package/lib/typescript/screens/SelectorStore.d.ts.map +1 -1
- package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
- package/lib/typescript/screens/camera/index.d.ts.map +1 -1
- package/lib/typescript/screens/cimb-sign/index.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/store.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan-tima/InforLoan.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan-tima/PaymentSchedule.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/accept_policy.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/store.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/update-info.d.ts.map +1 -1
- package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -1
- package/lib/typescript/screens/home/Store.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/index.d.ts.map +1 -1
- package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -1
- package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -1
- package/lib/typescript/screens/mrz-scanner/index.d.ts.map +1 -1
- package/lib/typescript/screens/mrz-scanner/store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/Store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/Store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
- package/lib/typescript/screens/notification/ListLoanStore.d.ts.map +1 -1
- package/lib/typescript/screens/notification/index.d.ts.map +1 -1
- package/lib/typescript/screens/notification/store.d.ts.map +1 -1
- package/lib/typescript/screens/personal/index.d.ts.map +1 -1
- package/lib/typescript/screens/qualify/Store.d.ts.map +1 -1
- package/lib/typescript/screens/quick-submit/store.d.ts.map +1 -1
- package/lib/typescript/screens/schedule-payment/DigitalSchedulePayment.d.ts.map +1 -1
- package/lib/typescript/screens/schedule-payment/store.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/SelfieStore.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
- package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
- package/lib/typescript/screens/sign-tima/store.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/videoStore.d.ts.map +1 -1
- package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -1
- package/lib/typescript/screens/v3/LoanBuyCar.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/cameraCrop.d.ts +43 -0
- package/lib/typescript/utils/cameraCrop.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/AppStore.tsx +7 -2
- package/src/RNTimacare.tsx +7 -1
- package/src/assets/icons/index.tsx +10 -0
- package/src/assets/icons/modal_confirm.svg +15 -0
- package/src/assets/icons/modal_notice.svg +74 -0
- package/src/assets/icons/modal_success.svg +55 -0
- package/src/assets/icons/modal_warning.svg +48 -0
- package/src/assets/icons/user_security.svg +10 -0
- package/src/assets/tts/Frame1000011947.png +0 -0
- package/src/components/AppModal.tsx +34 -0
- package/src/components/{ItemTimaOneV3.tsx → ItemTimaOne.tsx} +1 -1
- package/src/components/ModalNotification/AlertGlobal.tsx +100 -0
- package/src/components/ModalNotification/index.tsx +224 -0
- package/src/components/ModalOptionLoan.tsx +15 -7
- package/src/components/ModalOptionLoanDigital.tsx +15 -7
- package/src/navigation/primary-navigator.tsx +7 -0
- package/src/screens/NFC/OcrStart.tsx +171 -0
- package/src/screens/NFC/ScanMRZ.tsx +563 -0
- package/src/screens/SelectorStore.tsx +7 -2
- package/src/screens/camera/CCCDCameraScreen.tsx +253 -187
- package/src/screens/camera/index.tsx +50 -54
- package/src/screens/cimb-sign/index.tsx +10 -14
- package/src/screens/detail-loan/PaymentInfo.tsx +75 -54
- package/src/screens/detail-loan/ShowQrCode.tsx +77 -54
- package/src/screens/detail-loan/store.tsx +39 -7
- package/src/screens/detail-loan-tima/InforLoan.tsx +20 -4
- package/src/screens/detail-loan-tima/PaymentSchedule.tsx +19 -4
- package/src/screens/digital-lending/Step6.tsx +24 -29
- package/src/screens/digital-lending/store.tsx +113 -20
- package/src/screens/eSign/Store.tsx +69 -34
- package/src/screens/eSign/index.tsx +33 -34
- package/src/screens/full-submit/accept_policy.tsx +101 -85
- package/src/screens/full-submit/store.tsx +157 -27
- package/src/screens/full-submit/update-info.tsx +0 -1
- package/src/screens/home/DigitalTopupItem.tsx +15 -7
- package/src/screens/home/ItemMotoBikeLoan.tsx +16 -7
- package/src/screens/home/Store.tsx +44 -23
- package/src/screens/home/index.tsx +306 -298
- package/src/screens/liveness/LivenessStore.tsx +111 -89
- package/src/screens/liveness/index.tsx +67 -68
- package/src/screens/liveness-v2/index.tsx +52 -52
- package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +20 -10
- package/src/screens/loan/UpdateLoan.tsx +56 -23
- package/src/screens/motobike/InfoLoanMotobike.tsx +43 -29
- package/src/screens/motobike/PolicyF88.tsx +15 -6
- package/src/screens/motobike/ReviewLoanMotobike.tsx +13 -3
- package/src/screens/mrz-scanner/index.tsx +56 -55
- package/src/screens/mrz-scanner/store.ts +13 -3
- package/src/screens/nationalID/Store.tsx +50 -29
- package/src/screens/nationalID/index.tsx +123 -219
- package/src/screens/nationalIDBack/Store.tsx +44 -26
- package/src/screens/nationalIDBack/index.tsx +129 -210
- package/src/screens/notification/ListLoanStore.tsx +19 -4
- package/src/screens/notification/index.tsx +0 -1
- package/src/screens/notification/store.tsx +7 -2
- package/src/screens/personal/index.tsx +21 -19
- package/src/screens/qualify/Store.tsx +0 -1
- package/src/screens/quick-submit/store.tsx +85 -15
- package/src/screens/schedule-payment/DigitalSchedulePayment.tsx +20 -4
- package/src/screens/schedule-payment/store.tsx +13 -5
- package/src/screens/selfie/SelfieStore.tsx +25 -9
- package/src/screens/selfie/index.tsx +0 -1
- package/src/screens/sign-tima/ViewContract.tsx +17 -18
- package/src/screens/sign-tima/store.tsx +37 -7
- package/src/screens/toan-trinh-so/LoanInterestRate.tsx +36 -10
- package/src/screens/toan-trinh-so/OCR.tsx +321 -609
- package/src/screens/toan-trinh-so/RegisterBack.tsx +21 -4
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +50 -54
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +31 -25
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +88 -82
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +25 -5
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +19 -4
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +19 -4
- package/src/screens/toan-trinh-so/TTSOTP.tsx +42 -25
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +63 -56
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +63 -55
- package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +50 -43
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +275 -341
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +19 -4
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +19 -4
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +19 -4
- package/src/screens/toan-trinh-so/store.ts +82 -37
- package/src/screens/uploadVideo/index.tsx +26 -21
- package/src/screens/uploadVideo/videoStore.tsx +19 -4
- package/src/screens/v3/AssetInformation.tsx +35 -16
- package/src/screens/v3/LoanBuyCar.tsx +35 -16
- package/src/services/api/api.ts +23 -26
- package/src/utils/cameraCrop.ts +96 -0
- package/lib/commonjs/components/ItemTimaOneV2.js +0 -2
- package/lib/commonjs/components/ItemTimaOneV2.js.flow +0 -617
- package/lib/commonjs/components/ItemTimaOneV2.js.map +0 -1
- package/lib/commonjs/components/ItemTimaOneV3.js +0 -2
- package/lib/commonjs/components/ItemTimaOneV3.js.map +0 -1
- package/lib/module/components/ItemTimaOneV2.js +0 -2
- package/lib/module/components/ItemTimaOneV2.js.map +0 -1
- package/lib/module/components/ItemTimaOneV3.js +0 -2
- package/lib/module/components/ItemTimaOneV3.js.map +0 -1
- package/lib/typescript/components/ItemTimaOneV2.d.ts +0 -7
- package/lib/typescript/components/ItemTimaOneV2.d.ts.map +0 -1
- package/lib/typescript/components/ItemTimaOneV3.d.ts +0 -7
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +0 -1
- package/src/components/ItemTimaOneV2.tsx +0 -617
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import {
|
|
5
|
-
Alert,
|
|
6
5
|
Dimensions,
|
|
7
6
|
SafeAreaView,
|
|
8
7
|
ScrollView,
|
|
@@ -27,6 +26,7 @@ import {
|
|
|
27
26
|
} from '../../assets/icons';
|
|
28
27
|
import { Api } from '../../services/api';
|
|
29
28
|
import Loading from '../../components/Loading';
|
|
29
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
30
30
|
import { color } from '../../theme';
|
|
31
31
|
import appStore from '../../AppStore';
|
|
32
32
|
import { ScreenNames } from '../../navigation';
|
|
@@ -110,14 +110,29 @@ export const UpdateLoan = observer(function UpdateLoan(props: any) {
|
|
|
110
110
|
|
|
111
111
|
appStore.getFirstDayPayment(response.data.data?.loanBriefId, 2);
|
|
112
112
|
} else {
|
|
113
|
-
|
|
113
|
+
AlertGlobal.show({
|
|
114
|
+
type: 'warning',
|
|
115
|
+
title: 'Thông báo',
|
|
116
|
+
message: response.data?.meta?.errorMessage,
|
|
117
|
+
primaryText: 'Đóng',
|
|
118
|
+
});
|
|
114
119
|
}
|
|
115
120
|
} else {
|
|
116
|
-
|
|
121
|
+
AlertGlobal.show({
|
|
122
|
+
type: 'warning',
|
|
123
|
+
title: 'Thông báo',
|
|
124
|
+
message: 'Có lỗi xảy ra trong quá trình lấy dữ liệu',
|
|
125
|
+
primaryText: 'Đóng',
|
|
126
|
+
});
|
|
117
127
|
}
|
|
118
128
|
} catch (error) {
|
|
119
129
|
console.error(error);
|
|
120
|
-
|
|
130
|
+
AlertGlobal.show({
|
|
131
|
+
type: 'warning',
|
|
132
|
+
title: 'Thông báo',
|
|
133
|
+
message: 'Có lỗi xảy ra trong quá trình lấy dữ liệu',
|
|
134
|
+
primaryText: 'Đóng',
|
|
135
|
+
});
|
|
121
136
|
} finally {
|
|
122
137
|
setIsLoading(false);
|
|
123
138
|
}
|
|
@@ -160,7 +175,12 @@ export const UpdateLoan = observer(function UpdateLoan(props: any) {
|
|
|
160
175
|
response.data.data?.moneyInsurranceHospitalization
|
|
161
176
|
);
|
|
162
177
|
} else {
|
|
163
|
-
|
|
178
|
+
AlertGlobal.show({
|
|
179
|
+
type: 'warning',
|
|
180
|
+
title: 'Thông báo',
|
|
181
|
+
message: response.data?.meta?.errorMessage,
|
|
182
|
+
primaryText: 'Đóng',
|
|
183
|
+
});
|
|
164
184
|
}
|
|
165
185
|
} else {
|
|
166
186
|
// Alert.alert('Thông báo', 'Có lỗi xảy ra trong quá trình lấy dữ liệu');
|
|
@@ -203,31 +223,44 @@ export const UpdateLoan = observer(function UpdateLoan(props: any) {
|
|
|
203
223
|
const response = await Api.getInstance().updateInfoTopup(body);
|
|
204
224
|
if (response.kind === 'ok') {
|
|
205
225
|
if (response.data?.meta?.errorCode === 200) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
);
|
|
219
|
-
},
|
|
226
|
+
AlertGlobal.show({
|
|
227
|
+
type: 'success',
|
|
228
|
+
title: 'Thông báo',
|
|
229
|
+
message: 'Cập nhật thông tin thành công',
|
|
230
|
+
primaryText: 'Đồng ý',
|
|
231
|
+
onPrimaryPress: () => {
|
|
232
|
+
navigation.dispatch(
|
|
233
|
+
StackActions.replace(ScreenNames.PreviewSchedulePaymentTopup, {
|
|
234
|
+
id: props.route.params.id,
|
|
235
|
+
isUpdate: true,
|
|
236
|
+
})
|
|
237
|
+
);
|
|
220
238
|
},
|
|
221
|
-
|
|
239
|
+
});
|
|
222
240
|
} else {
|
|
223
|
-
|
|
241
|
+
AlertGlobal.show({
|
|
242
|
+
type: 'warning',
|
|
243
|
+
title: 'Thông báo',
|
|
244
|
+
message: response.data?.meta?.errorMessage,
|
|
245
|
+
primaryText: 'Đóng',
|
|
246
|
+
});
|
|
224
247
|
}
|
|
225
248
|
} else {
|
|
226
|
-
|
|
249
|
+
AlertGlobal.show({
|
|
250
|
+
type: 'warning',
|
|
251
|
+
title: 'Thông báo',
|
|
252
|
+
message: 'Có lỗi xảy ra trong quá trình cập nhật',
|
|
253
|
+
primaryText: 'Đóng',
|
|
254
|
+
});
|
|
227
255
|
}
|
|
228
256
|
} catch (error) {
|
|
229
257
|
console.error(error);
|
|
230
|
-
|
|
258
|
+
AlertGlobal.show({
|
|
259
|
+
type: 'warning',
|
|
260
|
+
title: 'Thông báo',
|
|
261
|
+
message: 'Có lỗi xảy ra trong quá trình cập nhật',
|
|
262
|
+
primaryText: 'Đóng',
|
|
263
|
+
});
|
|
231
264
|
}
|
|
232
265
|
};
|
|
233
266
|
return (
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import {
|
|
4
|
-
Alert,
|
|
5
4
|
ScrollView,
|
|
6
5
|
TextInput,
|
|
7
6
|
TextStyle,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
ViewStyle,
|
|
11
10
|
} from 'react-native';
|
|
12
11
|
import MHeader from '../../components/MHeader';
|
|
12
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
13
13
|
import { Api } from '../../services/api';
|
|
14
14
|
import Loading from '../../components/Loading';
|
|
15
15
|
import { DropDown2, IconBack } from '../../assets/icons';
|
|
@@ -121,14 +121,22 @@ export default function InfoLoanMotobike(props: any) {
|
|
|
121
121
|
response?.data?.data?.address ? response?.data?.data?.address : ''
|
|
122
122
|
);
|
|
123
123
|
} else {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
AlertGlobal.show({
|
|
125
|
+
type: 'warning',
|
|
126
|
+
title: 'Thông báo',
|
|
127
|
+
message:
|
|
128
|
+
response?.data?.meta?.errorMessage ||
|
|
129
|
+
'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
130
|
+
primaryText: 'Đóng',
|
|
131
|
+
});
|
|
129
132
|
}
|
|
130
133
|
} catch (error) {
|
|
131
|
-
|
|
134
|
+
AlertGlobal.show({
|
|
135
|
+
type: 'warning',
|
|
136
|
+
title: 'Thông báo',
|
|
137
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
138
|
+
primaryText: 'Đóng',
|
|
139
|
+
});
|
|
132
140
|
} finally {
|
|
133
141
|
setIsLoading(false);
|
|
134
142
|
}
|
|
@@ -167,10 +175,20 @@ export default function InfoLoanMotobike(props: any) {
|
|
|
167
175
|
})
|
|
168
176
|
);
|
|
169
177
|
} else {
|
|
170
|
-
|
|
178
|
+
AlertGlobal.show({
|
|
179
|
+
type: 'warning',
|
|
180
|
+
title: 'Thông báo',
|
|
181
|
+
message: response.data?.meta?.errorMessage,
|
|
182
|
+
primaryText: 'Đóng',
|
|
183
|
+
});
|
|
171
184
|
}
|
|
172
185
|
} else {
|
|
173
|
-
|
|
186
|
+
AlertGlobal.show({
|
|
187
|
+
type: 'warning',
|
|
188
|
+
title: 'Thông báo',
|
|
189
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
190
|
+
primaryText: 'Đóng',
|
|
191
|
+
});
|
|
174
192
|
}
|
|
175
193
|
} catch (error) {
|
|
176
194
|
setIsLoading(false);
|
|
@@ -196,26 +214,22 @@ export default function InfoLoanMotobike(props: any) {
|
|
|
196
214
|
zIndex: 1000,
|
|
197
215
|
}}
|
|
198
216
|
onPress={() => {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
text: 'Không',
|
|
216
|
-
},
|
|
217
|
-
]
|
|
218
|
-
);
|
|
217
|
+
AlertGlobal.show({
|
|
218
|
+
type: 'confirm',
|
|
219
|
+
title: 'Thoát cập nhật thông tin',
|
|
220
|
+
message:
|
|
221
|
+
'Bạn có chắc chắn muốn thoát cập nhật thông tin không?',
|
|
222
|
+
primaryText: 'Có',
|
|
223
|
+
onPrimaryPress: () => {
|
|
224
|
+
navigation.dispatch(
|
|
225
|
+
CommonActions.reset({
|
|
226
|
+
index: 1,
|
|
227
|
+
routes: [{ name: ScreenNames.Main }],
|
|
228
|
+
})
|
|
229
|
+
);
|
|
230
|
+
},
|
|
231
|
+
secondaryText: 'Không',
|
|
232
|
+
});
|
|
219
233
|
}}
|
|
220
234
|
>
|
|
221
235
|
<IconBack />
|
|
@@ -9,6 +9,7 @@ import { useNavigation } from '@react-navigation/native';
|
|
|
9
9
|
import { MText } from '../../components/MText';
|
|
10
10
|
import { Api } from '../../services/api';
|
|
11
11
|
import LinearGradient from 'react-native-linear-gradient';
|
|
12
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
12
13
|
export default function PolicyF88(props) {
|
|
13
14
|
const navigation = useNavigation();
|
|
14
15
|
const insets = useSafeAreaInsets();
|
|
@@ -24,14 +25,22 @@ export default function PolicyF88(props) {
|
|
|
24
25
|
if (response.kind === 'ok' && response.data?.meta?.errorCode === 200) {
|
|
25
26
|
navigation.goBack();
|
|
26
27
|
} else {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
AlertGlobal.show({
|
|
29
|
+
type: 'warning',
|
|
30
|
+
title: 'Thông báo',
|
|
31
|
+
message:
|
|
32
|
+
response?.data?.meta?.errorMessage ||
|
|
33
|
+
'Có lỗi xảy ra, vui lòng thử lại sau!',
|
|
34
|
+
primaryText: 'Đóng',
|
|
35
|
+
});
|
|
32
36
|
}
|
|
33
37
|
} catch (error) {
|
|
34
|
-
|
|
38
|
+
AlertGlobal.show({
|
|
39
|
+
type: 'warning',
|
|
40
|
+
title: 'Thông báo',
|
|
41
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
42
|
+
primaryText: 'Đóng',
|
|
43
|
+
});
|
|
35
44
|
} finally {
|
|
36
45
|
setIsLoading(false);
|
|
37
46
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import {
|
|
4
|
-
Alert,
|
|
5
4
|
ScrollView,
|
|
6
5
|
TextInput,
|
|
7
6
|
TextStyle,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
ViewStyle,
|
|
11
10
|
} from 'react-native';
|
|
12
11
|
import MHeader from '../../components/MHeader';
|
|
12
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
13
13
|
import { commonStyles } from '../CommonStyles';
|
|
14
14
|
import {
|
|
15
15
|
CheckBox,
|
|
@@ -60,10 +60,20 @@ export default function ReviewLoanMotobike(props) {
|
|
|
60
60
|
})
|
|
61
61
|
);
|
|
62
62
|
} else {
|
|
63
|
-
|
|
63
|
+
AlertGlobal.show({
|
|
64
|
+
type: 'warning',
|
|
65
|
+
title: 'Thông báo',
|
|
66
|
+
message: response.data?.meta?.errorMessage,
|
|
67
|
+
primaryText: 'Đóng',
|
|
68
|
+
});
|
|
64
69
|
}
|
|
65
70
|
} else {
|
|
66
|
-
|
|
71
|
+
AlertGlobal.show({
|
|
72
|
+
type: 'warning',
|
|
73
|
+
title: 'Thông báo',
|
|
74
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
75
|
+
primaryText: 'Đóng',
|
|
76
|
+
});
|
|
67
77
|
}
|
|
68
78
|
} catch (error) {
|
|
69
79
|
setIsLoading(false);
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
StyleSheet,
|
|
8
8
|
PermissionsAndroid,
|
|
9
9
|
Platform,
|
|
10
|
-
Alert,
|
|
11
10
|
TouchableOpacity,
|
|
12
11
|
NativeModules,
|
|
13
12
|
} from 'react-native';
|
|
@@ -31,6 +30,7 @@ import { commonStyles } from '../CommonStyles';
|
|
|
31
30
|
import nfcStore from './store';
|
|
32
31
|
import { ScreenNames } from '../../navigation';
|
|
33
32
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
33
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
34
34
|
|
|
35
35
|
const { NFCReader } = NativeModules;
|
|
36
36
|
|
|
@@ -59,51 +59,49 @@ const MRZScanner = (props: any) => {
|
|
|
59
59
|
console.log(
|
|
60
60
|
'This feature is not available (on this device / in this context)'
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
AlertGlobal.show({
|
|
63
|
+
type: 'warning',
|
|
64
|
+
title: 'Thông báo',
|
|
65
|
+
message:
|
|
66
|
+
'Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',
|
|
67
|
+
primaryText: 'Đồng ý',
|
|
68
|
+
});
|
|
67
69
|
break;
|
|
68
70
|
case RESULTS.DENIED:
|
|
69
71
|
console.log(
|
|
70
72
|
'The permission has not been requested / is denied but requestable'
|
|
71
73
|
);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
]
|
|
87
|
-
);
|
|
74
|
+
AlertGlobal.show({
|
|
75
|
+
type: 'warning',
|
|
76
|
+
title: 'Thông báo',
|
|
77
|
+
message:
|
|
78
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
79
|
+
primaryText: 'Đồng ý',
|
|
80
|
+
onPrimaryPress: () => {
|
|
81
|
+
if (Platform.OS === 'ios') {
|
|
82
|
+
openSettings();
|
|
83
|
+
} else {
|
|
84
|
+
requestPermissions();
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
88
|
break;
|
|
89
89
|
case RESULTS.LIMITED:
|
|
90
90
|
console.log('The permission is limited: some actions are possible');
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
'
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
]
|
|
106
|
-
);
|
|
91
|
+
AlertGlobal.show({
|
|
92
|
+
type: 'warning',
|
|
93
|
+
title: 'Thông báo',
|
|
94
|
+
message:
|
|
95
|
+
'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',
|
|
96
|
+
primaryText: 'Đồng ý',
|
|
97
|
+
onPrimaryPress: () => {
|
|
98
|
+
if (Platform.OS === 'ios') {
|
|
99
|
+
openSettings();
|
|
100
|
+
} else {
|
|
101
|
+
requestPermissions();
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
});
|
|
107
105
|
break;
|
|
108
106
|
case RESULTS.GRANTED:
|
|
109
107
|
console.log('The permission is granted');
|
|
@@ -111,22 +109,20 @@ const MRZScanner = (props: any) => {
|
|
|
111
109
|
break;
|
|
112
110
|
case RESULTS.BLOCKED:
|
|
113
111
|
console.log('The permission is denied and not requestable anymore');
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
'
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
]
|
|
129
|
-
);
|
|
112
|
+
AlertGlobal.show({
|
|
113
|
+
type: 'warning',
|
|
114
|
+
title: 'Thông báo',
|
|
115
|
+
message:
|
|
116
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
117
|
+
primaryText: 'Đồng ý',
|
|
118
|
+
onPrimaryPress: () => {
|
|
119
|
+
if (Platform.OS === 'ios') {
|
|
120
|
+
openSettings();
|
|
121
|
+
} else {
|
|
122
|
+
openSettings();
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
});
|
|
130
126
|
break;
|
|
131
127
|
}
|
|
132
128
|
});
|
|
@@ -209,7 +205,12 @@ const MRZScanner = (props: any) => {
|
|
|
209
205
|
});
|
|
210
206
|
} catch (e) {
|
|
211
207
|
console.log(e);
|
|
212
|
-
|
|
208
|
+
AlertGlobal.show({
|
|
209
|
+
type: 'warning',
|
|
210
|
+
title: 'Lỗi',
|
|
211
|
+
message: e,
|
|
212
|
+
primaryText: 'Đóng',
|
|
213
|
+
});
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
).t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { makeAutoObservable } from "mobx"
|
|
3
3
|
import { Api } from '../../services/api';
|
|
4
|
-
import {
|
|
4
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
5
5
|
class Store {
|
|
6
6
|
isLoading = false
|
|
7
7
|
|
|
@@ -18,11 +18,21 @@ class Store {
|
|
|
18
18
|
if (response.data.meta.errorCode === 200) {
|
|
19
19
|
if (onSuccess) onSuccess()
|
|
20
20
|
} else {
|
|
21
|
-
|
|
21
|
+
AlertGlobal.show({
|
|
22
|
+
type: 'warning',
|
|
23
|
+
title: 'Thông báo',
|
|
24
|
+
message: response.data.meta?.errorMessage,
|
|
25
|
+
primaryText: 'Đóng',
|
|
26
|
+
})
|
|
22
27
|
if (onError) onError()
|
|
23
28
|
}
|
|
24
29
|
} else {
|
|
25
|
-
|
|
30
|
+
AlertGlobal.show({
|
|
31
|
+
type: 'warning',
|
|
32
|
+
title: 'Thông báo',
|
|
33
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
34
|
+
primaryText: 'Đóng',
|
|
35
|
+
})
|
|
26
36
|
if (onError) onError()
|
|
27
37
|
}
|
|
28
38
|
} catch (error) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { observable, action } from 'mobx';
|
|
3
3
|
import { Api } from '../../services/api';
|
|
4
4
|
import { myLog } from '../../utils/log';
|
|
5
|
-
import {
|
|
5
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
6
6
|
import { NATIONAL_ID, save } from '../../utils/storage';
|
|
7
7
|
import appStore from '../../AppStore';
|
|
8
8
|
import { removeAccent } from '../../utils';
|
|
@@ -66,41 +66,54 @@ class Store {
|
|
|
66
66
|
onSuccess(response.data.data);
|
|
67
67
|
}
|
|
68
68
|
} else {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
'
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
AlertGlobal.show({
|
|
70
|
+
type: 'warning',
|
|
71
|
+
title: 'Thông báo',
|
|
72
|
+
message: 'Vui lòng chụp đúng CMND/CCCD của bạn',
|
|
73
|
+
primaryText: 'Đồng ý',
|
|
74
|
+
});
|
|
74
75
|
}
|
|
75
76
|
} else {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
AlertGlobal.show({
|
|
78
|
+
type: 'warning',
|
|
79
|
+
title: 'Thông báo',
|
|
80
|
+
message:
|
|
81
|
+
'Vui lòng chụp đầy đủ không bị cắt góc CMND/CCCD mặt trước',
|
|
82
|
+
primaryText: 'Đồng ý',
|
|
83
|
+
});
|
|
81
84
|
}
|
|
82
85
|
} else {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
'
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
AlertGlobal.show({
|
|
87
|
+
type: 'warning',
|
|
88
|
+
title: 'Thông báo',
|
|
89
|
+
message: 'Vui lòng chụp đúng ảnh CMND/CCCD mặt trước',
|
|
90
|
+
primaryText: 'Đồng ý',
|
|
91
|
+
});
|
|
88
92
|
}
|
|
89
93
|
} else {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
'
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
AlertGlobal.show({
|
|
95
|
+
type: 'warning',
|
|
96
|
+
title: 'Thông báo',
|
|
97
|
+
message: 'Vui lòng chụp đúng ảnh CMND/CCCD mặt trước',
|
|
98
|
+
primaryText: 'Đồng ý',
|
|
99
|
+
});
|
|
95
100
|
}
|
|
96
101
|
} else {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
AlertGlobal.show({
|
|
103
|
+
type: 'warning',
|
|
104
|
+
title: 'Thông báo',
|
|
105
|
+
message: response.data.meta.errorMessage,
|
|
106
|
+
primaryText: 'Đồng ý',
|
|
107
|
+
});
|
|
100
108
|
}
|
|
101
109
|
} else {
|
|
102
110
|
this.isLoading = false;
|
|
103
|
-
|
|
111
|
+
AlertGlobal.show({
|
|
112
|
+
type: 'warning',
|
|
113
|
+
title: 'Thông báo',
|
|
114
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
115
|
+
primaryText: 'Đóng',
|
|
116
|
+
});
|
|
104
117
|
}
|
|
105
118
|
}
|
|
106
119
|
|
|
@@ -118,15 +131,23 @@ class Store {
|
|
|
118
131
|
onSuccess(response.data.data);
|
|
119
132
|
}
|
|
120
133
|
} else {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
134
|
+
AlertGlobal.show({
|
|
135
|
+
type: 'warning',
|
|
136
|
+
title: 'Thông báo',
|
|
137
|
+
message: response.data.meta.errorMessage,
|
|
138
|
+
primaryText: 'Đồng ý',
|
|
139
|
+
});
|
|
124
140
|
if (onFailure) onFailure();
|
|
125
141
|
}
|
|
126
142
|
} else {
|
|
127
143
|
this.isLoading = false;
|
|
128
144
|
this.isError = false;
|
|
129
|
-
|
|
145
|
+
AlertGlobal.show({
|
|
146
|
+
type: 'warning',
|
|
147
|
+
title: 'Thông báo',
|
|
148
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
149
|
+
primaryText: 'Đóng',
|
|
150
|
+
});
|
|
130
151
|
if (onFailure) onFailure();
|
|
131
152
|
}
|
|
132
153
|
}
|