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.
- package/lib/commonjs/assets/svgs/index.js +1 -1
- package/lib/commonjs/assets/svgs/index.js.flow +2 -0
- package/lib/commonjs/assets/svgs/index.js.map +1 -1
- package/lib/commonjs/assets/svgs/tick.svg +5 -0
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +150 -145
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/module/assets/svgs/index.js +1 -1
- package/lib/module/assets/svgs/index.js.map +1 -1
- package/lib/module/assets/svgs/tick.svg +5 -0
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/typescript/assets/svgs/index.d.ts +2 -1
- package/lib/typescript/assets/svgs/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/svgs/index.tsx +2 -0
- package/src/assets/svgs/tick.svg +5 -0
- package/src/screens/home/index.tsx +150 -145
|
@@ -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
|
-
|
|
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
|
-
<
|
|
852
|
+
{item?.step === 8 ? <IconTick /> : <Info />}
|
|
853
|
+
<MText
|
|
844
854
|
style={{
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
855
|
+
color:
|
|
856
|
+
item?.step === 8 ? '#28A745' : '#E40010',
|
|
857
|
+
fontSize: 10,
|
|
848
858
|
}}
|
|
849
859
|
>
|
|
850
|
-
<
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
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
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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
|
-
<
|
|
893
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
907
|
+
<MText
|
|
894
908
|
style={{
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
justifyContent: 'center',
|
|
898
|
-
borderRadius: 24,
|
|
899
|
-
paddingHorizontal: 10,
|
|
909
|
+
color: 'white',
|
|
910
|
+
fontSize: 10,
|
|
900
911
|
}}
|
|
901
912
|
>
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
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
|
-
<
|
|
926
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
940
|
+
<MText
|
|
927
941
|
style={{
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
justifyContent: 'center',
|
|
931
|
-
borderRadius: 24,
|
|
932
|
-
paddingHorizontal: 10,
|
|
942
|
+
color: 'white',
|
|
943
|
+
fontSize: 10,
|
|
933
944
|
}}
|
|
934
945
|
>
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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
|
-
<
|
|
954
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
968
|
+
<MText
|
|
955
969
|
style={{
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
justifyContent: 'center',
|
|
959
|
-
borderRadius: 24,
|
|
960
|
-
paddingHorizontal: 10,
|
|
970
|
+
color: 'white',
|
|
971
|
+
fontSize: 10,
|
|
961
972
|
}}
|
|
962
973
|
>
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
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
|
-
<
|
|
982
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
996
|
+
<MText
|
|
983
997
|
style={{
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
justifyContent: 'center',
|
|
987
|
-
borderRadius: 24,
|
|
988
|
-
paddingHorizontal: 10,
|
|
998
|
+
color: 'white',
|
|
999
|
+
fontSize: 10,
|
|
989
1000
|
}}
|
|
990
1001
|
>
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
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',
|