|
|
|
@ -272,7 +272,7 @@ const BasicTable = ({ settingsIcon }) => { |
|
|
|
|
{row.isExpanded ? ( |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan={headerGroups[0].headers.length}> |
|
|
|
|
{renderRowSubComponent({ row: row.original })} |
|
|
|
|
{renderRowSubComponent({ rows: row.original })} |
|
|
|
|
{/* {renderRowSubComponent({ row: row.values })} */} |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
@ -367,11 +367,20 @@ const BasicTable = ({ settingsIcon }) => { |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
function renderRowSubComponent({ row }) { |
|
|
|
|
function renderRowSubComponent({ rows }) { |
|
|
|
|
const persian = { |
|
|
|
|
weight: "وزن", |
|
|
|
|
pageNumber: "تعداد صفحات", |
|
|
|
|
pageType: "نوع کاغذ", |
|
|
|
|
bookNumber: "شماره شابک", |
|
|
|
|
publisher: "انتشارات", |
|
|
|
|
author: "نویسنده", |
|
|
|
|
bookType: "قطع", |
|
|
|
|
publishedYear: "سال انتشار", |
|
|
|
|
}; |
|
|
|
|
return ( |
|
|
|
|
<div className="pl-2 pr-5 bg-blue-200"> |
|
|
|
|
مبلغ: {row.history} |
|
|
|
|
<br /> |
|
|
|
|
<div className="flex flex-row items-center bg-indigo-100 border-r-4 border-blue-600 p-2"> |
|
|
|
|
مبلغ: {rows.history} |
|
|
|
|
<button className="bg-blue-400">ویرایش</button> |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|