react-native-timacare 3.1.21-beta → 3.1.23

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.
@@ -826,183 +826,185 @@ export const Home = observer(function Home() {
826
826
  </MText>
827
827
  </TouchableOpacity> */}
828
828
  </View>
829
- {item?.step !== 8 && (
829
+
830
+ <View
831
+ style={{
832
+ flexDirection: 'row',
833
+ alignItems: 'center',
834
+ gap: 8,
835
+ marginTop: 16,
836
+ backgroundColor: '#FFF2F2',
837
+ paddingHorizontal: 10,
838
+ paddingVertical: 10,
839
+ borderRadius: 4,
840
+ justifyContent: 'space-between',
841
+ }}
842
+ >
830
843
  <View
831
844
  style={{
832
845
  flexDirection: 'row',
833
846
  alignItems: 'center',
834
847
  gap: 8,
835
- marginTop: 16,
836
- backgroundColor: '#FFF2F2',
837
- paddingHorizontal: 10,
838
- paddingVertical: 10,
839
- borderRadius: 4,
840
- justifyContent: 'space-between',
841
848
  }}
842
849
  >
843
- <View
850
+ <Info />
851
+ <MText
844
852
  style={{
845
- flexDirection: 'row',
846
- alignItems: 'center',
847
- gap: 8,
853
+ color: '#E40010',
854
+ fontSize: 10,
848
855
  }}
849
856
  >
850
- <Info />
851
- <MText
852
- style={{
853
- color: '#E40010',
854
- fontSize: 10,
855
- }}
856
- >
857
- {item?.step < 3
858
- ? 'OCR chứng từ để được giải ngân'
859
- : item?.step === 3
860
- ? `Tiếp tục Cập nhật thông tin để${'\n'}giải ngân nhanh nhất`
861
- : item?.step === 6 || item?.step === 7
862
- ? `Tiếp tục eKYC và Ký hợp đồng để${'\n'}giải ngân nhanh nhất`
863
- : 'Đơn vay đang trong quá trình xử lý'}
864
- </MText>
865
- </View>
866
- {item?.step < 3 ? (
867
- <TouchableOpacity
868
- onPress={() => {
869
- if (item?.step === 0) {
870
- navigation.push(ScreenNames.OCR, {
857
+ {item?.step < 3
858
+ ? 'OCR chứng từ để được giải ngân'
859
+ : item?.step === 3
860
+ ? `Tiếp tục Cập nhật thông tin để${'\n'}giải ngân nhanh nhất`
861
+ : item?.step === 6 || item?.step === 7
862
+ ? `Tiếp tục eKYC và Ký hợp đồng để${'\n'}giải ngân nhanh nhất`
863
+ : item?.step === 8
864
+ ? `Hợp đồng đã ký thành công. Vui lòng chờ chuyên viên tư vấn liên hệ`
865
+ : 'Đơn vay đang trong quá trình xử lý'}
866
+ </MText>
867
+ </View>
868
+ {item?.step < 3 ? (
869
+ <TouchableOpacity
870
+ onPress={() => {
871
+ if (item?.step === 0) {
872
+ navigation.push(ScreenNames.OCR, {
873
+ loan: item,
874
+ front: true,
875
+ });
876
+ } else if (item?.step === 1) {
877
+ navigation.push(
878
+ ScreenNames.VehicleCamera,
879
+ {
871
880
  loan: item,
872
881
  front: true,
873
- });
874
- } else if (item?.step === 1) {
875
- navigation.push(
876
- ScreenNames.VehicleCamera,
877
- {
878
- loan: item,
879
- front: true,
880
- }
881
- );
882
- } else if (item?.step === 2) {
883
- navigation.push(
884
- ScreenNames.RegisterCamera,
885
- {
886
- loan: item,
887
- }
888
- );
889
- }
882
+ }
883
+ );
884
+ } else if (item?.step === 2) {
885
+ navigation.push(
886
+ ScreenNames.RegisterCamera,
887
+ {
888
+ loan: item,
889
+ }
890
+ );
891
+ }
892
+ }}
893
+ >
894
+ <LinearGradient
895
+ colors={['#FF8E4F', '#EF592E']}
896
+ style={{
897
+ height: 24,
898
+ alignItems: 'center',
899
+ justifyContent: 'center',
900
+ borderRadius: 24,
901
+ paddingHorizontal: 10,
890
902
  }}
891
903
  >
892
- <LinearGradient
893
- colors={['#FF8E4F', '#EF592E']}
904
+ <MText
894
905
  style={{
895
- height: 24,
896
- alignItems: 'center',
897
- justifyContent: 'center',
898
- borderRadius: 24,
899
- paddingHorizontal: 10,
906
+ color: 'white',
907
+ fontSize: 10,
900
908
  }}
901
909
  >
902
- <MText
903
- style={{
904
- color: 'white',
905
- fontSize: 10,
906
- }}
907
- >
908
- Đi tới OCR
909
- </MText>
910
- </LinearGradient>
911
- </TouchableOpacity>
912
- ) : item?.step === 3 ? (
913
- <TouchableOpacity
914
- onPress={() => {
915
- if (item?.step === 3) {
916
- navigation.push(
917
- ScreenNames.ReviewInformation,
918
- {
919
- loan: item,
920
- }
921
- );
922
- }
910
+ Đi tới OCR
911
+ </MText>
912
+ </LinearGradient>
913
+ </TouchableOpacity>
914
+ ) : item?.step === 3 ? (
915
+ <TouchableOpacity
916
+ onPress={() => {
917
+ if (item?.step === 3) {
918
+ navigation.push(
919
+ ScreenNames.ReviewInformation,
920
+ {
921
+ loan: item,
922
+ }
923
+ );
924
+ }
925
+ }}
926
+ >
927
+ <LinearGradient
928
+ colors={['#FF8E4F', '#EF592E']}
929
+ style={{
930
+ height: 24,
931
+ alignItems: 'center',
932
+ justifyContent: 'center',
933
+ borderRadius: 24,
934
+ paddingHorizontal: 10,
923
935
  }}
924
936
  >
925
- <LinearGradient
926
- colors={['#FF8E4F', '#EF592E']}
937
+ <MText
927
938
  style={{
928
- height: 24,
929
- alignItems: 'center',
930
- justifyContent: 'center',
931
- borderRadius: 24,
932
- paddingHorizontal: 10,
939
+ color: 'white',
940
+ fontSize: 10,
933
941
  }}
934
942
  >
935
- <MText
936
- style={{
937
- color: 'white',
938
- fontSize: 10,
939
- }}
940
- >
941
- Cập nhật thông tin
942
- </MText>
943
- </LinearGradient>
944
- </TouchableOpacity>
945
- ) : item?.step === 6 ? (
946
- <TouchableOpacity
947
- onPress={() => {
948
- navigation.push(ScreenNames.LivenessV2, {
949
- loan: item,
950
- });
943
+ Cập nhật thông tin
944
+ </MText>
945
+ </LinearGradient>
946
+ </TouchableOpacity>
947
+ ) : item?.step === 6 ? (
948
+ <TouchableOpacity
949
+ onPress={() => {
950
+ navigation.push(ScreenNames.LivenessV2, {
951
+ loan: item,
952
+ });
953
+ }}
954
+ >
955
+ <LinearGradient
956
+ colors={['#FF8E4F', '#EF592E']}
957
+ style={{
958
+ height: 24,
959
+ alignItems: 'center',
960
+ justifyContent: 'center',
961
+ borderRadius: 24,
962
+ paddingHorizontal: 10,
951
963
  }}
952
964
  >
953
- <LinearGradient
954
- colors={['#FF8E4F', '#EF592E']}
965
+ <MText
955
966
  style={{
956
- height: 24,
957
- alignItems: 'center',
958
- justifyContent: 'center',
959
- borderRadius: 24,
960
- paddingHorizontal: 10,
967
+ color: 'white',
968
+ fontSize: 10,
961
969
  }}
962
970
  >
963
- <MText
964
- style={{
965
- color: 'white',
966
- fontSize: 10,
967
- }}
968
- >
969
- Đi tới EKYC
970
- </MText>
971
- </LinearGradient>
972
- </TouchableOpacity>
973
- ) : item?.step === 7 ? (
974
- <TouchableOpacity
975
- onPress={() => {
976
- navigation.push(ScreenNames.TTSSignLoan, {
977
- loan: item,
978
- });
971
+ Đi tới EKYC
972
+ </MText>
973
+ </LinearGradient>
974
+ </TouchableOpacity>
975
+ ) : item?.step === 7 ? (
976
+ <TouchableOpacity
977
+ onPress={() => {
978
+ navigation.push(ScreenNames.TTSSignLoan, {
979
+ loan: item,
980
+ });
981
+ }}
982
+ >
983
+ <LinearGradient
984
+ colors={['#FF8E4F', '#EF592E']}
985
+ style={{
986
+ height: 24,
987
+ alignItems: 'center',
988
+ justifyContent: 'center',
989
+ borderRadius: 24,
990
+ paddingHorizontal: 10,
979
991
  }}
980
992
  >
981
- <LinearGradient
982
- colors={['#FF8E4F', '#EF592E']}
993
+ <MText
983
994
  style={{
984
- height: 24,
985
- alignItems: 'center',
986
- justifyContent: 'center',
987
- borderRadius: 24,
988
- paddingHorizontal: 10,
995
+ color: 'white',
996
+ fontSize: 10,
989
997
  }}
990
998
  >
991
- <MText
992
- style={{
993
- color: 'white',
994
- fontSize: 10,
995
- }}
996
- >
997
- Ký hợp đồng
998
- </MText>
999
- </LinearGradient>
1000
- </TouchableOpacity>
1001
- ) : (
1002
- <></>
1003
- )}
1004
- </View>
1005
- )}
999
+ Ký hợp đồng
1000
+ </MText>
1001
+ </LinearGradient>
1002
+ </TouchableOpacity>
1003
+ ) : (
1004
+ <></>
1005
+ )}
1006
+ </View>
1007
+
1006
1008
  <View
1007
1009
  style={{
1008
1010
  flexDirection: 'row',