react-native-timacare 1.0.3 → 1.0.5

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.
@@ -1267,30 +1267,19 @@ export const Home = observer(function Home() {
1267
1267
  }}
1268
1268
  />
1269
1269
  <View style={{ flexDirection: 'row' }}>
1270
- {item?.isUpdateLoan ||
1271
- item?.isUpdateInformation ? (
1272
- <TouchableOpacity
1270
+ {item?.loanStatus === null ||
1271
+ item?.loanStatus === '' ? (
1272
+ <MButton
1273
1273
  style={{ alignItems: 'center' }}
1274
1274
  onPress={() => {
1275
- if (item?.isUpdateLoan) {
1276
- navigation.dispatch(
1277
- StackActions.push(
1278
- ScreenNames.CimbSelfie,
1279
- {
1280
- loan: item,
1281
- }
1282
- )
1283
- );
1284
- } else {
1285
- navigation.dispatch(
1286
- StackActions.push(
1287
- ScreenNames.QuickSubmit,
1288
- {
1289
- loan: item,
1290
- }
1291
- )
1292
- );
1293
- }
1275
+ navigation.dispatch(
1276
+ StackActions.push(
1277
+ ScreenNames.CIMBxTima,
1278
+ {
1279
+ loan: item,
1280
+ }
1281
+ )
1282
+ );
1294
1283
  }}
1295
1284
  >
1296
1285
  <AddInfo />
@@ -1308,30 +1297,81 @@ export const Home = observer(function Home() {
1308
1297
  Hoàn thiện{'\n'}cung cấp thông
1309
1298
  tin
1310
1299
  </MText>
1311
- </TouchableOpacity>
1300
+ </MButton>
1312
1301
  ) : (
1313
- <View
1314
- style={{ alignItems: 'center' }}
1315
- >
1316
- <AddInfoDisable />
1317
- <MText
1318
- style={[
1319
- commonStyles.textNormal,
1320
- {
1321
- fontSize: 12,
1322
- fontWeight: '300',
1323
- marginTop: 8,
1324
- textAlign: 'center',
1325
- },
1326
- ]}
1327
- >
1328
- Hoàn thiện{'\n'}cung cấp thông
1329
- tin
1330
- </MText>
1302
+ <View>
1303
+ {item?.isUpdateLoan ||
1304
+ item?.isUpdateInformation ? (
1305
+ <TouchableOpacity
1306
+ style={{
1307
+ alignItems: 'center',
1308
+ }}
1309
+ onPress={() => {
1310
+ if (item?.isUpdateLoan) {
1311
+ navigation.dispatch(
1312
+ StackActions.push(
1313
+ ScreenNames.CimbSelfie,
1314
+ {
1315
+ loan: item,
1316
+ }
1317
+ )
1318
+ );
1319
+ } else {
1320
+ navigation.dispatch(
1321
+ StackActions.push(
1322
+ ScreenNames.QuickSubmit,
1323
+ {
1324
+ loan: item,
1325
+ }
1326
+ )
1327
+ );
1328
+ }
1329
+ }}
1330
+ >
1331
+ <AddInfo />
1332
+ <MText
1333
+ style={[
1334
+ commonStyles.textNormal,
1335
+ {
1336
+ fontSize: 12,
1337
+ fontWeight: '300',
1338
+ marginTop: 8,
1339
+ textAlign: 'center',
1340
+ },
1341
+ ]}
1342
+ >
1343
+ Hoàn thiện{'\n'}cung cấp
1344
+ thông tin
1345
+ </MText>
1346
+ </TouchableOpacity>
1347
+ ) : (
1348
+ <View
1349
+ style={{
1350
+ alignItems: 'center',
1351
+ }}
1352
+ >
1353
+ <AddInfoDisable />
1354
+ <MText
1355
+ style={[
1356
+ commonStyles.textNormal,
1357
+ {
1358
+ fontSize: 12,
1359
+ fontWeight: '300',
1360
+ marginTop: 8,
1361
+ textAlign: 'center',
1362
+ },
1363
+ ]}
1364
+ >
1365
+ Hoàn thiện{'\n'}cung cấp
1366
+ thông tin
1367
+ </MText>
1368
+ </View>
1369
+ )}
1331
1370
  </View>
1332
1371
  )}
1372
+
1333
1373
  {item?.isSignContract && (
1334
- <TouchableOpacity
1374
+ <MButton
1335
1375
  style={{
1336
1376
  alignItems: 'center',
1337
1377
  marginLeft: 20,
@@ -1367,10 +1407,10 @@ export const Home = observer(function Home() {
1367
1407
  >
1368
1408
  Ký hợp đồng
1369
1409
  </MText>
1370
- </TouchableOpacity>
1410
+ </MButton>
1371
1411
  )}
1372
1412
  {item?.isSignContractTima && (
1373
- <TouchableOpacity
1413
+ <MButton
1374
1414
  style={{
1375
1415
  alignItems: 'center',
1376
1416
  marginLeft: 20,
@@ -1400,10 +1440,10 @@ export const Home = observer(function Home() {
1400
1440
  >
1401
1441
  Hợp đồng{'\n'}dịch vụ
1402
1442
  </MText>
1403
- </TouchableOpacity>
1443
+ </MButton>
1404
1444
  )}
1405
1445
  {item?.paymentEvidenceUrl && (
1406
- <TouchableOpacity
1446
+ <MButton
1407
1447
  style={{
1408
1448
  alignItems: 'center',
1409
1449
  marginLeft: 20,
@@ -1433,10 +1473,10 @@ export const Home = observer(function Home() {
1433
1473
  >
1434
1474
  Mục đích {'\n'}sử dụng
1435
1475
  </MText>
1436
- </TouchableOpacity>
1476
+ </MButton>
1437
1477
  )}
1438
1478
  {item?.showPaymentPlan && (
1439
- <TouchableOpacity
1479
+ <MButton
1440
1480
  style={{
1441
1481
  alignItems: 'center',
1442
1482
  marginLeft: 20,
@@ -1465,9 +1505,121 @@ export const Home = observer(function Home() {
1465
1505
  >
1466
1506
  Lịch dự kiến
1467
1507
  </MText>
1468
- </TouchableOpacity>
1508
+ </MButton>
1469
1509
  )}
1470
1510
  </View>
1511
+
1512
+ {item.messageErrorCIMB !== '' &&
1513
+ item?.messageErrorCIMB &&
1514
+ item?.isCimbApproveFull === null ? (
1515
+ <View
1516
+ style={{
1517
+ backgroundColor: '#FBEFE7',
1518
+ marginHorizontal: -16,
1519
+ paddingVertical: 8,
1520
+ marginTop: 16,
1521
+ borderBottomRightRadius: 8,
1522
+ borderBottomLeftRadius: 8,
1523
+ paddingHorizontal: 16,
1524
+ }}
1525
+ >
1526
+ <View
1527
+ style={{
1528
+ flexDirection: 'row',
1529
+ justifyContent: 'space-between',
1530
+ alignItems: 'center',
1531
+ }}
1532
+ >
1533
+ <View
1534
+ style={{
1535
+ flex: 1,
1536
+ flexDirection: 'row',
1537
+ paddingRight: 20,
1538
+ }}
1539
+ >
1540
+ <Image
1541
+ source={require('./error.png')}
1542
+ style={{
1543
+ width: 16,
1544
+ height: 16,
1545
+ }}
1546
+ />
1547
+ <MText
1548
+ style={{ marginLeft: 5 }}
1549
+ >
1550
+ Đơn vay của bạn gặp gián đoạn,
1551
+ vui lòng liên hệ tổng đài
1552
+ 1900633688
1553
+ </MText>
1554
+ </View>
1555
+
1556
+ <TouchableOpacity
1557
+ onPress={() => {
1558
+ Linking.openURL(
1559
+ `tel:1900633688`
1560
+ );
1561
+ }}
1562
+ >
1563
+ <LinearGradient
1564
+ colors={[
1565
+ '#FF8E4F',
1566
+ '#EF592E',
1567
+ ]}
1568
+ style={{
1569
+ paddingHorizontal: 10,
1570
+ height: 30,
1571
+ borderRadius: 30,
1572
+ justifyContent: 'center',
1573
+ alignItems: 'center',
1574
+ flexDirection: 'row',
1575
+ }}
1576
+ >
1577
+ <Call />
1578
+ <MText
1579
+ style={{
1580
+ color: 'white',
1581
+ fontSize: 12,
1582
+ marginLeft: 5,
1583
+ }}
1584
+ >
1585
+ Liên hệ
1586
+ </MText>
1587
+ </LinearGradient>
1588
+ </TouchableOpacity>
1589
+ </View>
1590
+ </View>
1591
+ ) : (
1592
+ <View
1593
+ style={{
1594
+ flexDirection: 'row',
1595
+ alignItems: 'center',
1596
+ backgroundColor: '#FBEFE7',
1597
+ marginHorizontal: -16,
1598
+ paddingVertical: 8,
1599
+ marginTop: 16,
1600
+ borderBottomRightRadius: 8,
1601
+ borderBottomLeftRadius: 8,
1602
+ paddingHorizontal: 16,
1603
+ }}
1604
+ >
1605
+ <Info />
1606
+ <MText
1607
+ style={[
1608
+ {
1609
+ fontWeight: '300',
1610
+ fontSize: 10,
1611
+ fontStyle: 'italic',
1612
+ color: '#333333',
1613
+ marginLeft: 8,
1614
+ },
1615
+ ]}
1616
+ >
1617
+ {item?.suggestion
1618
+ ? item?.suggestion
1619
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1620
+ </MText>
1621
+ </View>
1622
+ )}
1471
1623
  </View>
1472
1624
  ) : (
1473
1625
  <View>