react-native-timacare 3.0.10 → 3.0.12-beta

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.
Files changed (81) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +56 -0
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/assets/icons/add_info_disable.svg +3 -8
  5. package/lib/commonjs/assets/icons/index.js +1 -1
  6. package/lib/commonjs/assets/icons/index.js.flow +4 -0
  7. package/lib/commonjs/assets/icons/index.js.map +1 -1
  8. package/lib/commonjs/assets/icons/topup.svg +16 -0
  9. package/lib/commonjs/assets/icons/topup_success.svg +16 -0
  10. package/lib/commonjs/assets/img/selfie.png +0 -0
  11. package/lib/commonjs/assets/img/selfie.webp +0 -0
  12. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  13. package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
  14. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  15. package/lib/commonjs/screens/home/index.js +1 -1
  16. package/lib/commonjs/screens/home/index.js.flow +130 -66
  17. package/lib/commonjs/screens/home/index.js.map +1 -1
  18. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
  19. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +304 -0
  20. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
  21. package/lib/commonjs/screens/loan/UpdateLoan.js +2 -0
  22. package/lib/commonjs/screens/loan/UpdateLoan.js.flow +791 -0
  23. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -0
  24. package/lib/commonjs/screens/register/index.js +1 -1
  25. package/lib/commonjs/screens/register/index.js.flow +1 -1
  26. package/lib/commonjs/services/api/api-config.js +1 -1
  27. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  28. package/lib/commonjs/services/api/api-config.js.map +1 -1
  29. package/lib/commonjs/services/api/api.js +1 -1
  30. package/lib/commonjs/services/api/api.js.flow +136 -0
  31. package/lib/commonjs/services/api/api.js.map +1 -1
  32. package/lib/module/AppStore.js +1 -1
  33. package/lib/module/AppStore.js.map +1 -1
  34. package/lib/module/assets/icons/add_info_disable.svg +3 -8
  35. package/lib/module/assets/icons/index.js +1 -1
  36. package/lib/module/assets/icons/index.js.map +1 -1
  37. package/lib/module/assets/icons/topup.svg +16 -0
  38. package/lib/module/assets/icons/topup_success.svg +16 -0
  39. package/lib/module/assets/img/selfie.png +0 -0
  40. package/lib/module/assets/img/selfie.webp +0 -0
  41. package/lib/module/navigation/primary-navigator.js +1 -1
  42. package/lib/module/navigation/primary-navigator.js.map +1 -1
  43. package/lib/module/screens/home/index.js +1 -1
  44. package/lib/module/screens/home/index.js.map +1 -1
  45. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
  46. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
  47. package/lib/module/screens/loan/UpdateLoan.js +2 -0
  48. package/lib/module/screens/loan/UpdateLoan.js.map +1 -0
  49. package/lib/module/screens/register/index.js +1 -1
  50. package/lib/module/services/api/api-config.js +1 -1
  51. package/lib/module/services/api/api-config.js.map +1 -1
  52. package/lib/module/services/api/api.js +1 -1
  53. package/lib/module/services/api/api.js.map +1 -1
  54. package/lib/typescript/AppStore.d.ts +8 -0
  55. package/lib/typescript/AppStore.d.ts.map +1 -1
  56. package/lib/typescript/assets/icons/index.d.ts +3 -1
  57. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  58. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  59. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  60. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  61. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts +2 -0
  62. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -0
  63. package/lib/typescript/screens/loan/UpdateLoan.d.ts +2 -0
  64. package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -0
  65. package/lib/typescript/services/api/api.d.ts +128 -0
  66. package/lib/typescript/services/api/api.d.ts.map +1 -1
  67. package/package.json +1 -1
  68. package/src/AppStore.tsx +56 -0
  69. package/src/assets/icons/add_info_disable.svg +3 -8
  70. package/src/assets/icons/index.tsx +4 -0
  71. package/src/assets/icons/topup.svg +16 -0
  72. package/src/assets/icons/topup_success.svg +16 -0
  73. package/src/assets/img/selfie.png +0 -0
  74. package/src/assets/img/selfie.webp +0 -0
  75. package/src/navigation/primary-navigator.tsx +9 -0
  76. package/src/screens/home/index.tsx +130 -66
  77. package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +304 -0
  78. package/src/screens/loan/UpdateLoan.tsx +791 -0
  79. package/src/screens/register/index.tsx +1 -1
  80. package/src/services/api/api-config.ts +2 -2
  81. package/src/services/api/api.ts +136 -0
@@ -47,6 +47,8 @@ import {
47
47
  LogoSmall,
48
48
  SignDisable,
49
49
  TimaNormal,
50
+ TopupSuccessSvg,
51
+ TopupSvg,
50
52
  UpdateIcon,
51
53
  } from '../../assets/icons';
52
54
  import Geolocation from 'react-native-geolocation-service';
@@ -170,6 +172,9 @@ export const Home = observer(function Home() {
170
172
  FullSubmitStore.getPositionCIMB();
171
173
  FullSubmitStore.getJobStatusCIMB();
172
174
  QuickSubmitStore.getJobsCIMB();
175
+ appStore.getLoanTimeAll();
176
+ appStore.getRateTypeAll();
177
+ appStore.getInsurenceTimeAll();
173
178
  }, 2000);
174
179
  }, []);
175
180
 
@@ -1715,6 +1720,7 @@ export const Home = observer(function Home() {
1715
1720
  style={{
1716
1721
  flexDirection: 'row',
1717
1722
  justifyContent: 'space-between',
1723
+ alignItems: 'center',
1718
1724
  }}
1719
1725
  >
1720
1726
  <MText style={commonStyles.textNormal}>
@@ -1736,8 +1742,13 @@ export const Home = observer(function Home() {
1736
1742
  marginVertical: 16,
1737
1743
  }}
1738
1744
  />
1739
- <View style={{ flexDirection: 'row' }}>
1740
- {!homeStore.checkEKYC[item?.id] ? (
1745
+ <View
1746
+ style={{
1747
+ flexDirection: 'row',
1748
+ gap: 24,
1749
+ }}
1750
+ >
1751
+ {!homeStore.checkEKYC[item?.id] && (
1741
1752
  <TouchableOpacity
1742
1753
  style={{ alignItems: 'center' }}
1743
1754
  onPress={() => {
@@ -1768,28 +1779,50 @@ export const Home = observer(function Home() {
1768
1779
  EKYC
1769
1780
  </MText>
1770
1781
  </TouchableOpacity>
1782
+ )}
1783
+ {/* Cập nhật thông tin với đơn ô tô digital topup */}
1784
+ {item?.typeLoan === 4 &&
1785
+ item?.productId === 8 ? (
1786
+ <>
1787
+ {item?.isUpdateInfoTopup && (
1788
+ <TouchableOpacity
1789
+ onPress={() => {
1790
+ navigation.dispatch(
1791
+ StackActions.push(
1792
+ ScreenNames.UpdateLoan,
1793
+ item
1794
+ )
1795
+ );
1796
+ }}
1797
+ style={{
1798
+ alignItems: 'center',
1799
+ }}
1800
+ >
1801
+ <TopupSvg />
1802
+ <MText
1803
+ style={[
1804
+ commonStyles.textNormal,
1805
+ {
1806
+ fontSize: 12,
1807
+ fontWeight: '300',
1808
+ marginTop: 8,
1809
+ },
1810
+ ]}
1811
+ >
1812
+ Cập nhật{'\n'}thông tin
1813
+ </MText>
1814
+ </TouchableOpacity>
1815
+ )}
1816
+ </>
1771
1817
  ) : (
1772
- <View style={{ alignItems: 'center' }}>
1773
- <AddInfoDisable />
1774
- <MText
1775
- style={[
1776
- commonStyles.textNormal,
1777
- {
1778
- fontSize: 12,
1779
- fontWeight: '300',
1780
- marginTop: 8,
1781
- },
1782
- ]}
1783
- >
1784
- EKYC
1785
- </MText>
1786
- </View>
1818
+ <></>
1787
1819
  )}
1820
+
1821
+ {/* -------------------------------------------------- */}
1788
1822
  {item?.isVideoDebt && (
1789
1823
  <TouchableOpacity
1790
1824
  style={{
1791
1825
  alignItems: 'center',
1792
- marginLeft: 20,
1793
1826
  }}
1794
1827
  onPress={() => {
1795
1828
  checkTerm(item, () => {
@@ -1819,54 +1852,86 @@ export const Home = observer(function Home() {
1819
1852
  </MText>
1820
1853
  </TouchableOpacity>
1821
1854
  )}
1822
-
1823
- {homeStore.checkEKYC[item?.id] ? (
1824
- <TouchableOpacity
1825
- style={{
1826
- alignItems: 'center',
1827
- marginLeft: 20,
1828
- }}
1829
- onPress={() => {
1830
- checkTerm(item, () => {
1831
- signLoan(item);
1832
- });
1833
- }}
1834
- >
1835
- <IconSign2 />
1836
- <MText
1837
- style={[
1838
- commonStyles.textNormal,
1839
- {
1840
- fontSize: 12,
1841
- fontWeight: '300',
1842
- marginTop: 8,
1843
- },
1844
- ]}
1845
- >
1846
- Ký HĐ
1847
- </MText>
1848
- </TouchableOpacity>
1855
+ {item?.typeLoan === 4 &&
1856
+ item?.productId === 8 ? (
1857
+ <>
1858
+ {!item?.isUpdateInfoTopup &&
1859
+ homeStore.checkEKYC[item?.id] && (
1860
+ <TouchableOpacity
1861
+ style={{
1862
+ alignItems: 'center',
1863
+ }}
1864
+ onPress={() => {
1865
+ checkTerm(item, () => {
1866
+ signLoan(item);
1867
+ });
1868
+ }}
1869
+ >
1870
+ <IconSign2 />
1871
+ <MText
1872
+ style={[
1873
+ commonStyles.textNormal,
1874
+ {
1875
+ fontSize: 12,
1876
+ fontWeight: '300',
1877
+ marginTop: 8,
1878
+ },
1879
+ ]}
1880
+ >
1881
+ Ký HĐ
1882
+ </MText>
1883
+ </TouchableOpacity>
1884
+ )}
1885
+ </>
1849
1886
  ) : (
1850
- <View
1851
- style={{
1852
- alignItems: 'center',
1853
- marginLeft: 20,
1854
- }}
1855
- >
1856
- <SignDisable />
1857
- <MText
1858
- style={[
1859
- commonStyles.textNormal,
1860
- {
1861
- fontSize: 12,
1862
- fontWeight: '300',
1863
- marginTop: 8,
1864
- },
1865
- ]}
1866
- >
1867
-
1868
- </MText>
1869
- </View>
1887
+ <>
1888
+ {homeStore.checkEKYC[item?.id] ? (
1889
+ <TouchableOpacity
1890
+ style={{
1891
+ alignItems: 'center',
1892
+ }}
1893
+ onPress={() => {
1894
+ checkTerm(item, () => {
1895
+ signLoan(item);
1896
+ });
1897
+ }}
1898
+ >
1899
+ <IconSign2 />
1900
+ <MText
1901
+ style={[
1902
+ commonStyles.textNormal,
1903
+ {
1904
+ fontSize: 12,
1905
+ fontWeight: '300',
1906
+ marginTop: 8,
1907
+ },
1908
+ ]}
1909
+ >
1910
+ Ký HĐ
1911
+ </MText>
1912
+ </TouchableOpacity>
1913
+ ) : (
1914
+ <View
1915
+ style={{
1916
+ alignItems: 'center',
1917
+ }}
1918
+ >
1919
+ {/* <SignDisable />
1920
+ <MText
1921
+ style={[
1922
+ commonStyles.textNormal,
1923
+ {
1924
+ fontSize: 12,
1925
+ fontWeight: '300',
1926
+ marginTop: 8,
1927
+ },
1928
+ ]}
1929
+ >
1930
+ Ký HĐ
1931
+ </MText> */}
1932
+ </View>
1933
+ )}
1934
+ </>
1870
1935
  )}
1871
1936
  {item?.typeLoan && item?.productId === 8 && (
1872
1937
  <TouchableOpacity
@@ -1878,7 +1943,6 @@ export const Home = observer(function Home() {
1878
1943
  }}
1879
1944
  style={{
1880
1945
  alignItems: 'center',
1881
- marginLeft: 20,
1882
1946
  }}
1883
1947
  >
1884
1948
  <IconSchedule />