import React, { useState } from "react"; import dataImage2 from "../../assets/images/data-table-user-2.png"; import { handlePagingFunc } from "../Pagination/HandlePagination"; import PaginatedList from "../Pagination/PaginatedList"; import PendingJobsPopout from "../jobPopout/PendingJobsPopout"; import { PriceFormatter } from "../Helpers/PriceFormatter"; export default function MyPendingJobTable({ MyJobList, className }) { let [jobPopout, setJobPopout] = useState({ show: false, data: {} }); // STATE TO HOLD THE VALUE OF THE ALERT DETAILS AND DETERMINE WHEN TO SHOW const [currentPage, setCurrentPage] = useState(0); const indexOfFirstItem = Number(currentPage); const indexOfLastItem = Number(indexOfFirstItem) + Number(process.env.REACT_APP_ITEM_PER_PAGE); const currentActiveJobList = MyJobList?.result_list?.slice( indexOfFirstItem, indexOfLastItem ); const handlePagination = (e) => { handlePagingFunc(e, setCurrentPage); }; return (
| All Product | */} {/*. | */} {/*
{value.title}{value.description}
Price:{" "}
{thePrice}
Duration:{" "}
{" "}
{value.timeline_days} day(s)
Expire:{" "}
{" "}
{deliveryDate}
Sent to:{" "}
{" "}
{value.job_to}
|
|
| No Pending Task! |