Compare commits

...

4 Commits

2 changed files with 11 additions and 10 deletions
@@ -230,9 +230,9 @@ export default function AssignPrevNewTask({
) : (
<button
type="button"
disabled={requestStatus.loading}
disabled={requestStatus.loading || requestStatus.status}
onClick={assignFamilyTask}
className="custom-btn btn-gradient text-white"
className={`custom-btn btn-gradient text-white ${requestStatus.status && 'opacity-50'}`}
>
Assign
</button>
+9 -8
View File
@@ -104,7 +104,7 @@ export default function MyJobTable({ MyJobList, reloadJobList, className }) {
);
};
const currentJobList = filterJobList();
const currentJobList = filterJobList()?.filter(item => item?.job_mode == 'GENERAL'); // Show only jobs with job mode of GENERAL
// Handling Filter Pagination
const filteredCurrentJobList = currentJobList?.slice(
@@ -358,13 +358,14 @@ function myJobTableFeatures(
{MyJobList?.data?.result_list?.length > 0 ? (
filteredCurrentJobList.length > 0 ? (
filteredCurrentJobList.map((value, index) => (
<JobListItem
key={index}
index={index}
value={value}
image_server={MyJobList.data.session_image_server}
/>
))
<JobListItem
key={index}
index={index}
value={value}
image_server={MyJobList.data.session_image_server}
/>
)
)
) : (
<NoJobsRow text="No Jobs Available In This Category!" />
)