diff --git a/src/components/OffersInterest/OffersInterestTable.jsx b/src/components/OffersInterest/OffersInterestTable.jsx index a5d6b10..bb0f035 100644 --- a/src/components/OffersInterest/OffersInterestTable.jsx +++ b/src/components/OffersInterest/OffersInterestTable.jsx @@ -7,17 +7,21 @@ import PaginatedList from "../Pagination/PaginatedList"; import familyImage from '../../assets/images/no-family-side.png' -export default function FamilyTable({ className, familyList, loader, popUpHandler }) { +export default function OffersInterestTable({offerInterestList, className}) { + + const navigate = useNavigate(); + let { pathname } = useLocation(); + + console.log('TESTING',offerInterestList?.data) + const filterCategories = ["All Categories", "Explore", "Featured"]; const [selectedCategory, setCategory] = useState(filterCategories[0]); - const navigate = useNavigate(); - // let location = useLocation(); const [currentPage, setCurrentPage] = useState(0); const indexOfFirstItem = Number(currentPage); const indexOfLastItem = Number(indexOfFirstItem) + Number(process.env.REACT_APP_ITEM_PER_PAGE); - const currentFamilyList = familyList?.slice(indexOfFirstItem, indexOfLastItem); + const currentOfferInterestList = offerInterestList?.data?.slice(indexOfFirstItem, indexOfLastItem); const handlePagination = (e) => { handlePagingFunc(e, setCurrentPage); @@ -25,133 +29,183 @@ export default function FamilyTable({ className, familyList, loader, popUpHandle return (
| Name | +Last Login | +No of Tasks | ++ |
|---|---|---|---|
|
+
+
+
+
+
+
+ + {item?.title} ++ {item?.expire} + |
+
+
+
+
+
+
+ 7473 ETH
+
+
+ |
+
+
+
+
+
+
+ 6392.99$
+
+
+ |
+
+ + + | +
| Name | -Last Login | -No of Tasks | -- |
|---|---|---|---|
|
-
-
-
-
-
-
- - {`${firstname} ${lastname} (${age})`} -- - Added:{" "} - - {addedDate} - - - |
-
-
-
- {LoginDate}
-
-
- |
-
-
-
- {task_count}
-
-
- |
- - - | -
Add your family, assign tasks, and get the whole team engaged.
- -No Offer list avaliable.
+