diff --git a/src/components/FamilyAcc/Tabs/FamilyWaitlist.jsx b/src/components/FamilyAcc/Tabs/FamilyWaitlist.jsx index 6ba062d..e46f0af 100644 --- a/src/components/FamilyAcc/Tabs/FamilyWaitlist.jsx +++ b/src/components/FamilyAcc/Tabs/FamilyWaitlist.jsx @@ -4,22 +4,20 @@ import { handlePagingFunc, PaginatedList } from "../../Pagination"; import LoadingSpinner from "../../Spinners/LoadingSpinner"; const FamilyWaitlist = ({ familyData, className, loader }) => { - let navigate = useNavigate(); - let { pathname } = useLocation(); + const navigate = useNavigate(); + const { pathname } = useLocation(); const [currentPage, setCurrentPage] = useState(0); - const indexOfFirstItem = Number(currentPage); - const indexOfLastItem = - Number(indexOfFirstItem) + Number(process.env.REACT_APP_ITEM_PER_PAGE); - const currentTask = familyData?.result_list.slice( + const itemsPerPage = Number(process.env.REACT_APP_ITEM_PER_PAGE); + const indexOfFirstItem = currentPage; + const indexOfLastItem = currentPage + itemsPerPage; + const currentTask = familyData?.result_list?.slice( indexOfFirstItem, indexOfLastItem ); const handlePagination = (e) => handlePagingFunc(e, setCurrentPage); - console.log("I am in family waitlist", familyData); - return (
|
-
-
-
-
- |
-
-
-
- - {/* {value.title} */} - title --
- desd
-
- |
- - Date - Status - | -- - | -
|
+
+
+
+
+
+
+
+
+ + {value.title} + ++ {value.description} + +
+
+ + {addedDate} + ++ Status: {value.status} + + |
+ + + | +