diff --git a/src/components/ReactTable4/BasicTable.js b/src/components/ReactTable4/BasicTable.js
index b9f46e1..87f9d63 100644
--- a/src/components/ReactTable4/BasicTable.js
+++ b/src/components/ReactTable4/BasicTable.js
@@ -275,7 +275,6 @@ import rightArrow from "./right-arrow.svg"; */}
))}
-
- {renderRowSubComponent({ row: row.values })}
+ {renderRowSubComponent({ row: row.original })}
+ {/* {renderRowSubComponent({ row: row.values })} */}
|
) : null}
@@ -312,7 +312,6 @@ import rightArrow from "./right-arrow.svg"; */}
);
})}
-
10 ? "w-full" : "hidden"}`}
>
@@ -402,7 +401,7 @@ import rightArrow from "./right-arrow.svg"; */}
function renderRowSubComponent({ row }) {
return (
- نام: {row.name}
+ مبلغ: {row.history}
diff --git a/src/components/ReactTable4/MOCK_DATA.json b/src/components/ReactTable4/MOCK_DATA.json
index a4056ca..69f26c0 100644
--- a/src/components/ReactTable4/MOCK_DATA.json
+++ b/src/components/ReactTable4/MOCK_DATA.json
@@ -1,182 +1,22 @@
[
{
- "name": "مایکروویر سامسونگ مدل 1",
+ "name": "mahdi",
"order-date": "1399/09/27",
- "order-price": 27,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 1,
- "order-level": 1
- },
- {
- "name": "مایکروویر سامسونگ مدل 2",
- "order-date": "1399/09/25",
- "order-price": 26,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 2,
- "order-level": 2
- },
- {
- "name": "مایکروویر سامسونگ مدل 3",
- "order-date": "1399/09/22",
- "order-price": 44,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 3,
- "order-level": 3
- },
- {
- "name": "لپ تاپ مک بوک اپل",
- "order-date": "1410/09/27",
- "order-price": 73,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 4,
- "order-level": 4
- },
- {
- "name": "تبلت اپل",
- "order-date": "1375/09/25",
- "order-price": 96,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 5,
- "order-level": 5
- },
- {
- "name": "مایکروویر سامسونگ مدل 1",
- "order-date": "1399/09/27",
- "order-price": 27,
+ "order-price": 25,
"order-number": "09120023100",
"user-job": "مهندس ساختمان",
"order-status": 1,
- "order-level": 1
- },
- {
- "name": "مایکروویر سامسونگ مدل 2",
- "order-date": "1399/09/25",
- "order-price": 26,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 2,
- "order-level": 2
- },
- {
- "name": "مایکروویر سامسونگ مدل 3",
- "order-date": "1399/09/22",
- "order-price": 44,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 3,
- "order-level": 3
- },
- {
- "name": "لپ تاپ مک بوک اپل",
- "order-date": "1410/09/27",
- "order-price": 73,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 4,
- "order-level": 4
- },
- {
- "name": "تبلت اپل",
- "order-date": "1375/09/25",
- "order-price": 96,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 5,
- "order-level": 5
+ "order-level": 1,
+ "history": "مهدی"
},
{
- "name": "مایکروویر سامسونگ مدل 1",
+ "name": "tannaz",
"order-date": "1399/09/27",
"order-price": 27,
"order-number": "09120023100",
"user-job": "مهندس ساختمان",
"order-status": 1,
- "order-level": 1
- },
- {
- "name": "مایکروویر سامسونگ مدل 2",
- "order-date": "1399/09/25",
- "order-price": 26,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 2,
- "order-level": 2
- },
- {
- "name": "مایکروویر سامسونگ مدل 3",
- "order-date": "1399/09/22",
- "order-price": 44,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 3,
- "order-level": 3
- },
- {
- "name": "لپ تاپ مک بوک اپل",
- "order-date": "1410/09/27",
- "order-price": 73,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 4,
- "order-level": 4
- },
- {
- "name": "تبلت اپل",
- "order-date": "1375/09/25",
- "order-price": 96,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 5,
- "order-level": 5
- },
- {
- "name": "مایکروویر سامسونگ مدل 1",
- "order-date": "1399/09/27",
- "order-price": 27,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 1,
- "order-level": 1
- },
- {
- "name": "مایکروویر سامسونگ مدل 2",
- "order-date": "1399/09/25",
- "order-price": 26,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 2,
- "order-level": 2
- },
- {
- "name": "مایکروویر سامسونگ مدل 3",
- "order-date": "1399/09/22",
- "order-price": 44,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 3,
- "order-level": 3
- },
- {
- "name": "لپ تاپ مک بوک اپل",
- "order-date": "1410/09/27",
- "order-price": 73,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 4,
- "order-level": 4
- },
- {
- "name": "تبلت اپل",
- "order-date": "1375/09/25",
- "order-price": 96,
- "order-number": "09120023100",
- "user-job": "مهندس ساختمان",
- "order-status": 5,
- "order-level": 5
+ "order-level": 1,
+ "history": "tannaz"
}
]