Refactor project status options and remove "Suspended" status
This commit is contained in:
parent
5559970a05
commit
d9e1c91a6b
@ -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>}
|
||||||
|
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user