adjusted cookie to check for login type before components mounts

This commit was merged in pull request #250.
This commit is contained in:
victorAnumudu
2023-07-05 10:24:01 +01:00
parent 37a0ffed27
commit c807a2657b
2 changed files with 24 additions and 12 deletions
+11 -9
View File
@@ -45,15 +45,17 @@ export default function MyTasks({
My Tasks
</span>
</h1>
<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>
{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>
<div className="slider-btns flex space-x-4">
<div