new layout for full account offer list added

This commit was merged in pull request #263.
This commit is contained in:
victorAnumudu
2023-07-07 01:54:56 +01:00
parent ef045e2bc1
commit c0281f3734
6 changed files with 311 additions and 554 deletions
+25 -2
View File
@@ -37,7 +37,8 @@ export default function MyTasks({
<div className="notification-wrapper w-full">
{/* heading */}
<div className="sm:flex justify-between items-center mb-6">
<div className="w-full mb-5 sm:mb-0 flex justify-between items-center gap-1">
{/* <div className="w-full mb-5 sm:mb-0 flex justify-between items-center gap-1">
{userDetails.account_type == 'FAMILY' &&
<h1 className="text-26 font-bold text-dark-gray dark:text-white">
<span
className={`${selectTab === "today" ? "block" : "hidden"}`}
@@ -45,6 +46,7 @@ export default function MyTasks({
My Tasks
</span>
</h1>
}
{ActiveJobList?.data?.length > 0 && userDetails.account_type == 'FAMILY' &&
<button
type="button"
@@ -56,7 +58,7 @@ export default function MyTasks({
More Task
</button>
}
</div>
</div> */}
<div className="slider-btns flex space-x-4">
<div
onClick={() => filterHandler("today")}
@@ -71,6 +73,27 @@ export default function MyTasks({
className="mb-10"
/>
)}
<div className="w-full mb-5 flex justify-between items-center gap-1">
<h1 className="text-26 font-bold text-dark-gray dark:text-white">
<span
className={`${selectTab === "today" ? "block" : "hidden"}`}
>
My Tasks
</span>
</h1>
{ActiveJobList?.data?.length > 0 && userDetails.account_type == 'FAMILY' &&
<button
type="button"
onClick={() => {
navigate("/familymarket");
}}
className="px-4 h-10 flex justify-center items-center btn-gradient text-base rounded-full text-white"
>
More Task
</button>
}
</div>
<MyJobTable ActiveJobList={ActiveJobList} Account={userDetails} />
</div>
</div>