react-native-timacare 3.1.22-beta → 3.1.24

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