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