diff --git a/src/components/MyActiveJobs/ActiveJobMessage.jsx b/src/components/MyActiveJobs/ActiveJobMessage.jsx
index 75bd1d5..2b39dc3 100644
--- a/src/components/MyActiveJobs/ActiveJobMessage.jsx
+++ b/src/components/MyActiveJobs/ActiveJobMessage.jsx
@@ -9,14 +9,14 @@ import PaginatedList from "../Pagination/PaginatedList";
import { handlePagingFunc } from "../Pagination/HandlePagination";
export default function ActiveJobMessage({ activeJobMesList }) {
- const [currentPage, setCurrentPage] = useState(0);
- const indexOfFirstItem = Number(currentPage);
- const indexOfLastItem = Number(indexOfFirstItem)+Number(process.env.REACT_APP_ITEM_PER_PAGE);
- const currentActiveJobMesList = activeJobMesList?.data?.slice(indexOfFirstItem, indexOfLastItem);
+ // const [currentPage, setCurrentPage] = useState(0);
+ // const indexOfFirstItem = Number(currentPage);
+ // const indexOfLastItem = Number(indexOfFirstItem)+Number(process.env.REACT_APP_ITEM_PER_PAGE);
+ // const currentActiveJobMesList = activeJobMesList?.data?.slice(indexOfFirstItem, indexOfLastItem);
- const handlePagination = (e) => {
- handlePagingFunc(e,setCurrentPage)
- }
+ // const handlePagination = (e) => {
+ // handlePagingFunc(e,setCurrentPage)
+ // }
return (
@@ -27,10 +27,10 @@ export default function ActiveJobMessage({ activeJobMesList }) {
|
- {activeJobMesList.data.length ?
+ {activeJobMesList?.data?.length ?
(
- {currentActiveJobMesList.map((item, index) => (
+ {activeJobMesList.data.map((item, index) => (
|
@@ -63,7 +63,7 @@ export default function ActiveJobMessage({ activeJobMesList }) {
{/* PAGINATION BUTTON */}
- = activeJobMesList?.data?.length ? true : false} data={activeJobMesList?.data} start={indexOfFirstItem} stop={indexOfLastItem} />
+ {/* = activeJobMesList?.data?.length ? true : false} data={activeJobMesList?.data} start={indexOfFirstItem} stop={indexOfLastItem} /> */}
{/* END OF PAGINATION BUTTON */}
)
diff --git a/src/components/MyActiveJobs/ActiveJobs.jsx b/src/components/MyActiveJobs/ActiveJobs.jsx
index baa7a21..c022744 100644
--- a/src/components/MyActiveJobs/ActiveJobs.jsx
+++ b/src/components/MyActiveJobs/ActiveJobs.jsx
@@ -353,7 +353,7 @@ function ActiveJobs(props) {
-
+
Actions
@@ -459,7 +459,7 @@ function ActiveJobs(props) {
{/* Buttons Sections */}
|