Changes in Infrastructure service dropdown.

This commit is contained in:
Kartik Sharma 2025-09-20 11:29:29 +05:30
parent 1ef82ad0b2
commit 994f22e8c0
2 changed files with 4 additions and 11 deletions

View File

@ -143,7 +143,7 @@ const InfraTable = ({ buildings, projectId}) => {
// }, [handler]); // }, [handler]);
return ( return (
<div> <div className="px-6">
{projectBuilding && projectBuilding.length > 0 && ( {projectBuilding && projectBuilding.length > 0 && (
<table className="table table-bordered"> <table className="table table-bordered">
<tbody> <tbody>

View File

@ -90,7 +90,7 @@ const ProjectInfra = ({ data, onDataChange, eachSiteEngineer }) => {
id="DataTables_Table_0_length" id="DataTables_Table_0_length"
> >
{servicesLoading ? ( {servicesLoading ? (
<span>Loading...</span> <span></span>
) : assignedServices?.length > 1 ? ( ) : assignedServices?.length > 1 ? (
<label> <label>
<select <select
@ -111,18 +111,11 @@ const ProjectInfra = ({ data, onDataChange, eachSiteEngineer }) => {
) : ( ) : (
<div <div
style={{ 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?.length === 1
? assignedServices[0].name ? <h5>{ assignedServices[0].name}</h5>
: "No service available"} : "No service available"}
</div> </div>
)} )}