diff --git a/src/app/(dashboard)/consultation-reservations/page.jsx b/src/app/(dashboard)/consultation-reservations/page.jsx index 43f20d119706dcc5d26cfa020e468d82f71d6d2a..e80beab825db0fe9302cf0d2372f7dae0ecc86e6 100644 --- a/src/app/(dashboard)/consultation-reservations/page.jsx +++ b/src/app/(dashboard)/consultation-reservations/page.jsx @@ -201,7 +201,7 @@ const Reservation = () => { const selectedProjects = selectedOption.map((element) => element.value) setFilteredProjectsData(projectsData.filter((element) => selectedProjects.includes(element.project_id))) } - + console.log(floors.find((element) => element.id == selectedZone.floorId)?.image) return ( <>
{
{(selectedZone.floorId && !isLoadingData) &&
-
+ className='h-120 overflow-hidden w-full mb-7 flex flex-col items-center pt-2 px-5 pb-7 rounded-xl border border-neutral-300 relative'> + {!(floors.find((element) => element.id == selectedZone.floorId).image) ?
+
+
+ + Aucune Illustration fournie pour cet étage +
+
+
+ : +
+ element.id == selectedZone.floorId).image} className='w-full [aspect-ratio:2]'> +
+ } + {(!isLoadingData) &&
{/*selectedZone.floorId*/} {floors.filter((element) => element.id == selectedZone.floorId).map((floor, index) => { return floor.zones?.map((zone, index) => { @@ -379,7 +395,7 @@ const Reservation = () => {
}) })} -
+
} }
diff --git a/src/app/ui/SideBar.jsx b/src/app/ui/SideBar.jsx index 1b28f67da29693a02f7e580cc82a333af433884f..fd06833e44d6d9e342637f54bd603879e3747f02 100644 --- a/src/app/ui/SideBar.jsx +++ b/src/app/ui/SideBar.jsx @@ -60,7 +60,6 @@ const SideBar = () => { );