From 1e7ceb1687cb37df7bfd3634fd29ccfa44433b5c Mon Sep 17 00:00:00 2001 From: Raed BOUAFIF Date: Tue, 16 Jul 2024 09:50:53 +0100 Subject: [PATCH] version adding etage image to consultation --- .../consultation-reservations/page.jsx | 4 ++-- src/app/(dashboard)/reservation/page.jsx | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/app/(dashboard)/consultation-reservations/page.jsx b/src/app/(dashboard)/consultation-reservations/page.jsx index e80beab..e56a7da 100644 --- a/src/app/(dashboard)/consultation-reservations/page.jsx +++ b/src/app/(dashboard)/consultation-reservations/page.jsx @@ -361,7 +361,7 @@ const Reservation = () => { {(selectedZone.floorId && !isLoadingData) &&
+ className='h-100 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) ?
@@ -375,7 +375,7 @@ const Reservation = () => {
:
- element.id == selectedZone.floorId).image} className='w-full [aspect-ratio:2]'> + element.id == selectedZone.floorId).image} className='w-full [aspect-ratio:2.5]'>
} {(!isLoadingData) &&
diff --git a/src/app/(dashboard)/reservation/page.jsx b/src/app/(dashboard)/reservation/page.jsx index e75a1b4..422d12c 100644 --- a/src/app/(dashboard)/reservation/page.jsx +++ b/src/app/(dashboard)/reservation/page.jsx @@ -201,7 +201,23 @@ const Reservation = () => { ))} }
- {(selectedZone.floorId && !isLoadingData) &&
+ {(selectedZone.floorId && !isLoadingData) &&
+ { !(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.5]'> +
+ }
{floors.filter((element) => concernedFloors.includes(element.id)).map((floor) => { return floor.zones?.map((zone, index) => { -- GitLab