Changes in Infrastructure service dropdown.
This commit is contained in:
parent
1ef82ad0b2
commit
994f22e8c0
@ -143,7 +143,7 @@ const InfraTable = ({ buildings, projectId}) => {
|
||||
// }, [handler]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="px-6">
|
||||
{projectBuilding && projectBuilding.length > 0 && (
|
||||
<table className="table table-bordered">
|
||||
<tbody>
|
||||
|
@ -90,7 +90,7 @@ const ProjectInfra = ({ data, onDataChange, eachSiteEngineer }) => {
|
||||
id="DataTables_Table_0_length"
|
||||
>
|
||||
{servicesLoading ? (
|
||||
<span>Loading...</span>
|
||||
<span></span>
|
||||
) : assignedServices?.length > 1 ? (
|
||||
<label>
|
||||
<select
|
||||
@ -111,18 +111,11 @@ const ProjectInfra = ({ data, onDataChange, eachSiteEngineer }) => {
|
||||
) : (
|
||||
<div
|
||||
style={{
|
||||
fontSize: "0.875rem",
|
||||
height: "32px",
|
||||
width: "190px",
|
||||
border: "1px solid #ced4da",
|
||||
borderRadius: "0.25rem",
|
||||
padding: "4px 8px",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
|
||||
}}
|
||||
>
|
||||
{assignedServices?.length === 1
|
||||
? assignedServices[0].name
|
||||
? <h5>{ assignedServices[0].name}</h5>
|
||||
: "No service available"}
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user