Fixed the pendingfamilyData

This commit was merged in pull request #633.
This commit is contained in:
2024-03-09 18:58:25 +01:00
parent c26f2b725a
commit b769e4a4ba
5 changed files with 19 additions and 32 deletions
@@ -111,7 +111,7 @@ export default function FamilyPending({
</div>
</td>
<td className="text-right py-4 px-2">
<td className="text-right py-4 px-2 flex justify-end items-center">
<button
type="button"
onClick={() => {
@@ -43,7 +43,7 @@ const FamilyNewWaitlist = ({
setContinueTaskPopup({ show: false, data: {} });
};
console.log("Check this >>",currentTask)
// console.log("Check this >>",currentTask)
return (
<div
@@ -57,7 +57,7 @@ const FamilyNewWaitlist = ({
</div>
) : (
<>
{currentTask && (
{familyData && (
<div className="relative w-full overflow-x-auto sm:rounded-lg flex flex-col justify-between h-full">
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<tbody>
@@ -66,7 +66,7 @@ const FamilyNewWaitlist = ({
const selectedImage = require(`../../../assets/images/family/${
value?.banner || "default.jpg"
}`);
console.log("VALUE", value);
// console.log("VALUE", value);
// let image = `${familyData.session_image_server}${localStorage.getItem('session_token')}/job/${value.job_uid}`
return (
<tr
@@ -119,7 +119,7 @@ const FamilyNewWaitlist = ({
onClick={handlePagination}
prev={currentPage === 0}
next={currentPage + itemsPerPage >= familyData?.length}
data={currentTask}
data={familyData}
start={indexOfFirstItem}
stop={indexOfLastItem}
/>