From 097e69b12d7523d81c39dffeae987764154f41a6 Mon Sep 17 00:00:00 2001 From: Raed BOUAFIF Date: Mon, 8 Jul 2024 10:12:16 +0100 Subject: [PATCH] version final feature/image-etage --- .../consultation-reservations/page.jsx | 24 +++++++++++++++---- src/app/ui/SideBar.jsx | 1 - 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/app/(dashboard)/consultation-reservations/page.jsx b/src/app/(dashboard)/consultation-reservations/page.jsx index 43f20d1..e80beab 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 1b28f67..fd06833 100644 --- a/src/app/ui/SideBar.jsx +++ b/src/app/ui/SideBar.jsx @@ -60,7 +60,6 @@ const SideBar = () => { ); -- GitLab