|
|
@ -272,7 +272,7 @@ const BasicTable = ({ settingsIcon }) => { |
|
|
|
{row.isExpanded ? ( |
|
|
|
{row.isExpanded ? ( |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td colSpan={headerGroups[0].headers.length}> |
|
|
|
<td colSpan={headerGroups[0].headers.length}> |
|
|
|
{renderRowSubComponent({ row: row.original })} |
|
|
|
{renderRowSubComponent({ rows: row.original })} |
|
|
|
{/* {renderRowSubComponent({ row: row.values })} */} |
|
|
|
{/* {renderRowSubComponent({ row: row.values })} */} |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</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 ( |
|
|
|
return ( |
|
|
|
<div className="pl-2 pr-5 bg-blue-200"> |
|
|
|
<div className="flex flex-row items-center bg-indigo-100 border-r-4 border-blue-600 p-2"> |
|
|
|
مبلغ: {row.history} |
|
|
|
مبلغ: {rows.history} |
|
|
|
<br /> |
|
|
|
|
|
|
|
<button className="bg-blue-400">ویرایش</button> |
|
|
|
<button className="bg-blue-400">ویرایش</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|