|
|
@ -12,7 +12,6 @@ const persian = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const Table = ({ specifications }) => { |
|
|
|
const Table = ({ specifications }) => { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<ul className={`w-full`}> |
|
|
|
<ul className={`w-full`}> |
|
|
|
{Object.keys(specifications).map((specification, index) => ( |
|
|
|
{Object.keys(specifications).map((specification, index) => ( |
|
|
@ -23,7 +22,10 @@ const Table = ({ specifications }) => { |
|
|
|
> |
|
|
|
> |
|
|
|
{persian[specification]} |
|
|
|
{persian[specification]} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className={`bg-grayF9 rounded px-3 py-4 text-sm group-hover:bg-blueC0 group-hover:bg-opacity-10`} style={{ flex: 8 }}> |
|
|
|
<div |
|
|
|
|
|
|
|
className={`bg-grayF9 rounded px-3 py-4 text-sm group-hover:bg-blueC0 group-hover:bg-opacity-10`} |
|
|
|
|
|
|
|
style={{ flex: 8 }} |
|
|
|
|
|
|
|
> |
|
|
|
{specifications[specification]} |
|
|
|
{specifications[specification]} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -36,13 +38,13 @@ export default Table; |
|
|
|
|
|
|
|
|
|
|
|
Table.defaultProps = { |
|
|
|
Table.defaultProps = { |
|
|
|
specifications: { |
|
|
|
specifications: { |
|
|
|
weight: "1 کیلوگرم", |
|
|
|
weight: window.t("1 کیلوگرم"), |
|
|
|
pageNumber: "400 صفحه", |
|
|
|
pageNumber: window.t("400 صفحه"), |
|
|
|
pageType: "گلاسه", |
|
|
|
pageType: window.t("گلاسه"), |
|
|
|
bookNumber: "124900985340561870112312499", |
|
|
|
bookNumber: window.t("124900985340561870112312499"), |
|
|
|
publisher: "رزمندگان", |
|
|
|
publisher: window.t("رزمندگان"), |
|
|
|
author: "یک نویسنده گمنام", |
|
|
|
author: window.t("یک نویسنده گمنام"), |
|
|
|
bookType: "خشتی", |
|
|
|
bookType: window.t("خشتی"), |
|
|
|
publishedYear: "1399", |
|
|
|
publishedYear: window.t("1399"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|