data structure update

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-11-21 20:23:50 +05:00
parent d5896378db
commit c9ae02bdd1
4 changed files with 92 additions and 71 deletions

View File

@@ -7,7 +7,8 @@ import {
assenizator,
avtogreyderlar,
avtokran,
avtominora,
avtolift,
avtovishka,
betonNasoslar,
buldozerlar,
cement_trucks,
@@ -56,9 +57,15 @@ export default function CartType() {
return <InnerProductcard data={item} key={item.id} />;
})}
{/* Avtominora */}
{carType === "avtotowers" &&
avtominora.map((item) => {
{/* Avtoliftlar */}
{carType === "avtolift" &&
avtolift.map((item) => {
return <InnerProductcard data={item} key={item.id} />;
})}
{/* Avtovishka */}
{carType === "avtovishka" &&
avtovishka.map((item) => {
return <InnerProductcard data={item} key={item.id} />;
})}

View File

@@ -101,7 +101,7 @@ export const trucks: ProductTypes[] = [
truck_name: "avtocranes",
desc: "agreement",
path: "avtocranes",
image: Kran2,
image: Kran30,
},
{
id: 4,
@@ -112,10 +112,17 @@ export const trucks: ProductTypes[] = [
},
{
id: 1,
truck_name: "avtotowers",
truck_name: "Avtovishka",
desc: "agreement",
path: "avtotowers",
image: Kran1,
path: "Avtovishka",
image: Avtovishka28,
},
{
id: 1,
truck_name: "Avtolift",
desc: "agreement",
path: "Avtolift",
image: Avtolift28,
},
{
id: 1,
@@ -201,20 +208,20 @@ export const trucks: ProductTypes[] = [
path: "evakuator",
image: Evakuator,
},
{
{
id: 2,
truck_name: "avtocranes",
desc: "agreement",
path: "avtocranes",
image: Kran2,
},
{
id: 3,
truck_name: "trailers",
desc: "agreement",
path: "trailers",
image: Treyler,
},
// {
// id: 3,
// truck_name: "trailers",
// desc: "agreement",
// path: "trailers",
// image: Treyler,
// },
{
id: 4,
truck_name: "shalanda_traller",
@@ -256,13 +263,13 @@ export const forklift: ProductTypes[] = [
path: "tele-loaders",
image: Teleskop,
},
{
id: 3,
truck_name: "forklift-trucks",
desc: "agreement",
path: "forklift-trucks",
image: Forkliftlar,
},
// {
// id: 3,
// truck_name: "forklift-trucks",
// desc: "agreement",
// path: "forklift-trucks",
// image: Forkliftlar,
// },
];
export const excavators: ProductTypes[] = [];
@@ -507,52 +514,7 @@ export const betonNasoslar: innerCardTypes[] = [
];
//kranlar
export const avtominora: innerCardTypes[] = [
{
id: 1,
image: Avtolift28,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 28,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
{
id: 2,
image: Avtolift53,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 53,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
{
id: 3,
image: Avtolift53,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 63,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
export const avtovishka: innerCardTypes[] = [
{
id: 4,
image: Avtovishka28,
@@ -630,6 +592,54 @@ export const avtominora: innerCardTypes[] = [
},
];
export const avtolift: innerCardTypes[] = [
{
id: 1,
image: Avtolift28,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 28,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
{
id: 2,
image: Avtolift53,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 53,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
{
id: 3,
image: Avtolift53,
name: "Avtolift",
min_order_time: 5,
price: 600000,
path: "",
weight_kg: 12000,
maxHeight_m: 63,
capacity_kg: 500,
fuelType: "Dizel",
maxSpeed_kmh: 70,
enginePower_hp: "200-400",
transmission: "Mexanik/Avtomatik",
},
];
export const avtokran: innerCardTypes[] = [
{
id: 1,

View File

@@ -179,5 +179,7 @@
"beton_nasos": "Бетононасосы",
"vodovoz": "Водовоз",
"assenizator": "Ассенизатор",
"manipulyator": "Манипулятор"
"manipulyator": "Манипулятор",
"Avtovishka":"Автовышка",
"Avtolift":"Автолифт"
}

View File

@@ -179,5 +179,7 @@
"beton_nasos": "Beton nasos mashinalari",
"vodovoz":"Vodovoz",
"assenizator":"Assenizator",
"manipulyator":"Manipulyator"
"manipulyator":"Manipulyator",
"Avtovishka":"Avtovishka",
"Avtolift":"Avtolift"
}