Refactor project status options and remove "Suspended" status #5

Merged
admin merged 1 commits from vaibhav_bug_Issue-#50 into Feature_Task_Management 2025-04-08 12:32:57 +00:00
3 changed files with 10 additions and 10 deletions

View File

@ -181,10 +181,10 @@ const ManageProjectInfo = ( {project,handleSubmitForm, onClose} ) =>
<option value="1">Active</option> <option value="1">Active</option>
<option value="2">On Hold</option> <option value="2">On Hold</option>
<option value="3">Suspended</option> {/* <option value="3">Suspended</option> */}
<option value="4">Inactive</option> <option value="3">Inactive</option>
<option value="5">Completed</option> <option value="4">Completed</option>
</select> </select>
{errors.projectStatusId && <div className="danger-text text-start" style={{fontSize:"12px"}}>{errors.projectStatusId.message}</div>} {errors.projectStatusId && <div className="danger-text text-start" style={{fontSize:"12px"}}>{errors.projectStatusId.message}</div>}

View File

@ -30,11 +30,11 @@ const ProjectCard = ( {projectData} ) =>
return "Active"; return "Active";
case 2: case 2:
return "On Hold"; return "On Hold";
// case 3:
// return "Suspended";
case 3: case 3:
return "Suspended";
case 4:
return "Inactive"; return "Inactive";
case 5: case 4:
return "Completed"; return "Completed";
} }
}; };

View File

@ -6,13 +6,13 @@ export const ProjectStatus =(statusId)=>{
case 2: case 2:
return "On Hold" return "On Hold"
break; break;
// case 3:
// return "Suspended"
// break;
case 3: case 3:
return "Suspended"
break;
case 4:
return "Inactive" return "Inactive"
break; break;
case 5: case 4:
return "Completed" return "Completed"
break; break;
default: default: