Adding ImageGallery Chips. #517
@ -47,6 +47,7 @@ export const useImageGalleryFilter = (project)=>{
|
||||
const response = await ImageGalleryRepository.getImageGalleryFilter(project);
|
||||
return response.data;
|
||||
},
|
||||
enabled:!!project
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -100,33 +100,6 @@ const ImageGalleryPage = () => {
|
||||
/>
|
||||
|
||||
<div className="card page-min-h p-2">
|
||||
{/* {selectedProjectId && (
|
||||
<div className="d-flex flex-row w-20 pb-2">
|
||||
{!isLoading && assignedServices?.length === 0 ? (
|
||||
<span className="badge bg-label-secondary">
|
||||
Not service assiged yet
|
||||
</span>
|
||||
) : (
|
||||
<select className="form-select form-select-sm">
|
||||
<option>Select Service</option>
|
||||
{isLoading ? (
|
||||
<option>Loading...</option>
|
||||
) : assignedServices.length === 1 ? (
|
||||
<span className="badge bg-label-secondary">
|
||||
{assignedServices[0].name}
|
||||
</span>
|
||||
) : (
|
||||
assignedServices?.map((service) => (
|
||||
<option key={service.id} value={service?.id}>
|
||||
{service?.name}
|
||||
</option>
|
||||
))
|
||||
)}
|
||||
</select>
|
||||
)}
|
||||
</div>
|
||||
)} */}
|
||||
|
||||
<ImageGalleryListView
|
||||
filter={filter}
|
||||
filterData={filterData}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user