|
|
|
@ -31,7 +31,10 @@ const ProductDescription = ({ navTitles, items, addToCart }) => { |
|
|
|
|
{items.map((item, index) => |
|
|
|
|
item.name == name |
|
|
|
|
? item.items.map((item, index) => ( |
|
|
|
|
<ul className="flex w-full flex-1 my-2 items-center" key={index}> |
|
|
|
|
<ul |
|
|
|
|
className="flex w-full flex-1 my-2 items-center" |
|
|
|
|
key={index} |
|
|
|
|
> |
|
|
|
|
{item.title ? ( |
|
|
|
|
<li |
|
|
|
|
className="py-4 px-8 min-w-md bg-gray-200 ml-4 text-blueC0" |
|
|
|
@ -60,19 +63,23 @@ ProductDescription.defaultProps = { |
|
|
|
|
navTitles: [ |
|
|
|
|
{ |
|
|
|
|
id: 0, |
|
|
|
|
title: "مشخصات", |
|
|
|
|
title: "", |
|
|
|
|
title: `${window.t("مشخصات")}`, |
|
|
|
|
|
|
|
|
|
isActive: true, |
|
|
|
|
name: "moshakhasat", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: 1, |
|
|
|
|
title: "نقد و بررسی", |
|
|
|
|
title: `${window.t("نقد و بررسی")}`, |
|
|
|
|
|
|
|
|
|
isActive: false, |
|
|
|
|
name: "review", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: 2, |
|
|
|
|
title: "برسش و باسخ", |
|
|
|
|
title: `${window.t("برسش و باسخ")}`, |
|
|
|
|
|
|
|
|
|
isActive: false, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -81,35 +88,35 @@ ProductDescription.defaultProps = { |
|
|
|
|
name: "moshakhasat", |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
title: "وزن کتاب", |
|
|
|
|
description: "۱ کیلوگرم", |
|
|
|
|
title: `${window.t("نوع تعداد وزن کتاب")}`, |
|
|
|
|
description: `${window.t("۱ کیلوگرم")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "تعداد صفحات", |
|
|
|
|
description: "400 صفحه", |
|
|
|
|
title: `${window.t("نوع تعداد صفحات")}`, |
|
|
|
|
description: `${window.t("400 صفحه")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "نوع کاغذ", |
|
|
|
|
description: "گلاسه", |
|
|
|
|
title: `${window.t("نوع کاغذ")}`, |
|
|
|
|
description: `${window.t("گلاسه")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "شماره شابک", |
|
|
|
|
description: "1225548218000005818765", |
|
|
|
|
title: `${window.t("شماره شابک")}`, |
|
|
|
|
description: `${window.t("1225548218000005818765")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "انتشارات", |
|
|
|
|
description: "رزمندگان", |
|
|
|
|
title: `${window.t("انتشارات")}`, |
|
|
|
|
description: `${window.t("رزمندگان")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "نویسنده و یا معلف", |
|
|
|
|
description: "یک نویسنده گمنام", |
|
|
|
|
title: `${window.t("نویسنده و یا معلف")}`, |
|
|
|
|
description: `${window.t("یک نویسنده گمنام")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "قطع", |
|
|
|
|
description: "خشتی", |
|
|
|
|
title: `${window.t("قطع")}`, |
|
|
|
|
description: `${window.t("خشتی")}`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "سال انتشار", |
|
|
|
|
title: `${window.t("سال انتشار")}`, |
|
|
|
|
description: "1399", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -118,7 +125,7 @@ ProductDescription.defaultProps = { |
|
|
|
|
name: "review", |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
description: "لورم ایبسوم", |
|
|
|
|
description: `${window.t("لورم ایبسوم")}`, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|