update
This commit is contained in:
@@ -2,16 +2,11 @@ import { useNavigation } from '@react-navigation/native';
|
||||
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import reference_api from 'api/reference';
|
||||
import AppText from 'components/AppText';
|
||||
import LayoutTwo from 'components/LayoutTwo';
|
||||
import * as React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native';
|
||||
import Tabs from '../../home/ui/Tabs';
|
||||
|
||||
interface CargoPricesProps {}
|
||||
@@ -41,90 +36,92 @@ const CargoPrices = (props: CargoPricesProps) => {
|
||||
data.map(ref => (
|
||||
<View style={styles.cardWhite}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={styles.titleBlack}>{ref.title}</Text>
|
||||
<Text style={[styles.titleBlack, { fontSize: 16 }]}>
|
||||
<AppText style={styles.titleBlack}>{ref.title}</AppText>
|
||||
<AppText style={[styles.titleBlack, { fontSize: 16 }]}>
|
||||
{ref.price}$/{ref.unitValue}
|
||||
{ref.unit}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={styles.desc}>{ref.shortDescription}</Text>
|
||||
<AppText style={styles.desc}>
|
||||
{ref.shortDescription}
|
||||
</AppText>
|
||||
</View>
|
||||
))}
|
||||
<View style={styles.cardWhite}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={styles.titleBlack}>
|
||||
<AppText style={styles.titleBlack}>
|
||||
{t(
|
||||
'Avia pochtada bir maxsulotdan seriyalab olish mumkin emas',
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={styles.desc}>
|
||||
<AppText style={styles.desc}>
|
||||
{t(
|
||||
'(Bu kargo narxini o’sishiga olib keladi. Seriyali buyularni avto kargo orqali olib kelish arzonga tushadi)',
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.cardWhite, { backgroundColor: '#DFF2FD' }]}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t('Yetib kelish vaqti')}
|
||||
</Text>
|
||||
<Text
|
||||
</AppText>
|
||||
<AppText
|
||||
style={[
|
||||
styles.titleBlack,
|
||||
{ fontSize: 16, color: '#28A7E8' },
|
||||
]}
|
||||
>
|
||||
7-10 {t('kun')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={[styles.desc, { color: '#28A7E8B2' }]}>
|
||||
<AppText style={[styles.desc, { color: '#28A7E8B2' }]}>
|
||||
{t(
|
||||
'Yuklarni yetib elish vaqti oxirgi qadoqlash kunidan boshlab xisoblanadi',
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={styles.cardWhite}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={styles.titleBlack}>
|
||||
<AppText style={styles.titleBlack}>
|
||||
{t('Minimal miqdor talab qilinmaydi.')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={styles.desc}>
|
||||
<AppText style={styles.desc}>
|
||||
{t(
|
||||
"ya'ni, qancha gramm mahsulot olsangiz, shuncha og'irligi (gramm) uchun to'lov qilasiz.",
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.card]}>
|
||||
<Text style={[styles.titleBlack, { color: '#FF6363' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#FF6363' }]}>
|
||||
{t('Muhim!')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.cardWhite, { backgroundColor: '#DFF2FD' }]}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t('Filiallargacha yetkazib berish - bepul.')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={[styles.desc, { color: '#000000' }]}>
|
||||
<AppText style={[styles.desc, { color: '#000000' }]}>
|
||||
{t('Batafsil')}: @CPcargo_admin
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.card]}>
|
||||
<Text style={[styles.titleBlack, { color: '#000000B2' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#000000B2' }]}>
|
||||
{t(
|
||||
"Agar siz yashayotgan hududda bizning filialimiz mavjud bo'lmasa, o'zingizga eng yaqin bo'lgan filialni tanlab, ro'yhatdan o'tishingiz mumkin.",
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<TouchableOpacity
|
||||
style={[styles.card]}
|
||||
onPress={() => navigation.navigate('ListBranches')}
|
||||
>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t("Filiallarimiz ro'yhati ilovada mavjud")}
|
||||
</Text>
|
||||
</AppText>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)}
|
||||
@@ -134,83 +131,85 @@ const CargoPrices = (props: CargoPricesProps) => {
|
||||
data.map(ref => (
|
||||
<View style={styles.cardWhite}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={styles.titleBlack}>{ref.title}</Text>
|
||||
<Text style={[styles.titleBlack, { fontSize: 16 }]}>
|
||||
<AppText style={styles.titleBlack}>{ref.title}</AppText>
|
||||
<AppText style={[styles.titleBlack, { fontSize: 16 }]}>
|
||||
{ref.price}$/{ref.unitValue}
|
||||
{ref.unit}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={styles.desc}>{ref.shortDescription}</Text>
|
||||
<AppText style={styles.desc}>
|
||||
{ref.shortDescription}
|
||||
</AppText>
|
||||
</View>
|
||||
))}
|
||||
<View style={styles.cardWhite}>
|
||||
<Text style={styles.desc}>
|
||||
<AppText style={styles.desc}>
|
||||
{t(
|
||||
'Avto kargoda bir maxsulotdan seriyalab istalgan katta miqdorda olish mumkin. Doimiyko’p yuk oluvchi ijozlar uchun maxsus arzonlashtrilgan narxlarimiz bor',
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.cardWhite, { backgroundColor: '#DFF2FD' }]}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t('Yetib kelish vaqti')}
|
||||
</Text>
|
||||
<Text
|
||||
</AppText>
|
||||
<AppText
|
||||
style={[
|
||||
styles.titleBlack,
|
||||
{ fontSize: 16, color: '#28A7E8' },
|
||||
]}
|
||||
>
|
||||
10-20 {t('kun')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={[styles.desc, { color: '#28A7E8B2' }]}>
|
||||
<AppText style={[styles.desc, { color: '#28A7E8B2' }]}>
|
||||
{t(
|
||||
'Yuklarni yetib elish vaqti oxirgi qadoqlash kunidan boshlab xisoblanadi',
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={styles.cardWhite}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={styles.titleBlack}>
|
||||
<AppText style={styles.titleBlack}>
|
||||
{t('Minimal miqdor talab qilinmaydi.')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={styles.desc}>
|
||||
<AppText style={styles.desc}>
|
||||
{t(
|
||||
"ya'ni, qancha gramm mahsulot olsangiz, shuncha og'irligi (gramm) uchun to'lov qilasiz.",
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.card]}>
|
||||
<Text style={[styles.titleBlack, { color: '#FF6363' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#FF6363' }]}>
|
||||
{t('Muhim!')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.cardWhite, { backgroundColor: '#DFF2FD' }]}>
|
||||
<View style={styles.priceCard}>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t('Filiallargacha yetkazib berish - bepul.')}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<Text style={[styles.desc, { color: '#000000' }]}>
|
||||
<AppText style={[styles.desc, { color: '#000000' }]}>
|
||||
{t('Batafsil')}: @CPcargo_admin
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<View style={[styles.card]}>
|
||||
<Text style={[styles.titleBlack, { color: '#000000B2' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#000000B2' }]}>
|
||||
{t(
|
||||
"Agar siz yashayotgan hududda bizning filialimiz mavjud bo'lmasa, o'zingizga eng yaqin bo'lgan filialni tanlab, ro'yhatdan o'tishingiz mumkin.",
|
||||
)}
|
||||
</Text>
|
||||
</AppText>
|
||||
</View>
|
||||
<TouchableOpacity
|
||||
style={[styles.card]}
|
||||
onPress={() => navigation.navigate('ListBranches')}
|
||||
>
|
||||
<Text style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
<AppText style={[styles.titleBlack, { color: '#28A7E8' }]}>
|
||||
{t("Filiallarimiz ro'yhati ilovada mavjud")}
|
||||
</Text>
|
||||
</AppText>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user