- {!(floors.find((element) => element.id == selectedZone.floorId).image) ?
-
-
-
-
Aucune Illustration fournie pour cet étage
+ {!(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]'>
-
+ :
+
+
)
element.id == selectedZone.floorId).image}
+ className='w-full [aspect-ratio:2.5]'>
+
}
- {(!isLoadingData) &&
- {/*selectedZone.floorId*/}
- {floors.filter((element) => element.id == selectedZone.floorId).map((floor, index) => {
- return floor.zones?.map((zone, index) => {
- if (selectedZone.zoneId == zone.id && selectedZone.floorId == floor.id) return
setSelectedZone({floorId: floor.id, zoneId: zone.id})}
- key={index}
- className='rounded-md not-first:-left-2 text-white relative whitespace-nowrap flex items-center justify-center border border-[#B2CEDE] text-xs md:text-sm lg:text-base px-5 lg:px-10 h-9 bg-[#B2CEDE]'>
-
Etage {floor.numero} - Zone {zone.nom}
-
- return
setSelectedZone({floorId: floor.id, zoneId: zone.id})}
- className='cursor-pointer not-first:-left-2 hover:bg-neutral-100 duration-300 rounded-md text-[#8E8D8D] relative whitespace-nowrap border flex items-center justify-center border-[#D9D9D9] text-xs md:text-sm lg:text-base lg:px-10 px-5 h-9 bg-white'>
-
Etage {floor.numero} - Zone {zone.nom}
-
- })
- })}
-
}
+ {(!isLoadingData) &&
+
+ {/*selectedZone.floorId*/}
+ {floors.filter((element) => element.id == selectedZone.floorId).map((floor, index) => {
+ return floor.zones?.map((zone, index) => {
+ if (selectedZone.zoneId == zone.id && selectedZone.floorId == floor.id) return
setSelectedZone({floorId: floor.id, zoneId: zone.id})}
+ key={index}
+ className='rounded-md not-first:-left-2 text-white relative whitespace-nowrap flex items-center justify-center border border-[#B2CEDE] text-xs md:text-sm lg:text-base px-5 lg:px-10 h-9 bg-[#B2CEDE]'>
+
Etage {floor.numero} - Zone {zone.nom}
+
+ return
setSelectedZone({
+ floorId: floor.id,
+ zoneId: zone.id
+ })}
+ className='cursor-pointer not-first:-left-2 hover:bg-neutral-100 duration-300 rounded-md text-[#8E8D8D] relative whitespace-nowrap border flex items-center justify-center border-[#D9D9D9] text-xs md:text-sm lg:text-base lg:px-10 px-5 h-9 bg-white'>
+
Etage {floor.numero} - Zone {zone.nom}
+
+ })
+ })}
+
}
}
@@ -436,9 +445,9 @@ const Reservation = () => {
}
-
>
diff --git a/src/app/auth/login/page.jsx b/src/app/auth/login/page.jsx
index 62afb337d3584b2bc9ab1596e538a396f167201e..690dcca62084ba67dd408c19c1d355e0a3bff024 100644
--- a/src/app/auth/login/page.jsx
+++ b/src/app/auth/login/page.jsx
@@ -17,6 +17,11 @@ const LoginPage = () => {
const [messages, setMessages] = useState('');
const [isLoading, setIsLoading] = useState(false)
const router = useRouter();
+ const [isPasswordVisible, setIsPasswordVisible] = useState(false);
+
+ const togglePasswordVisibility = () => {
+ setIsPasswordVisible(!isPasswordVisible);
+ };
const handleSubmit = (event) => {
event.preventDefault();
@@ -62,8 +67,6 @@ const LoginPage = () => {
className="w-full md:min-h-0 min-h-screen md:justify-start items-center justify-center py-14 rounded-lg flex flex-col">
Connectez-vous à notre plateforme
- Vous n avez pas de compte ? Créer un compte
-