🐛 correction bug affichage déconnexion
This commit is contained in:
1 parent
65efdcac94
commit
cb95d93831
1 file changed
+5
-3
@@ -24,18 +24,20 @@ const NavBar = () => {
|
||||
navRef.current.style.height = "100%";
|
||||
}
|
||||
|
||||
const logout = () => {
|
||||
signOut()
|
||||
}
|
||||
|
||||
let visitor = (
|
||||
<nav className={`${style['navbar']}`}>
|
||||
|
||||
<div className="d-flex justify-content-center">
|
||||
<Image
|
||||
src={logo}
|
||||
|
||||
alt="thetiptop navigation logo big"
|
||||
width={250}
|
||||
height={100}
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -45,7 +47,7 @@ const NavBar = () => {
|
||||
<Link href="/contact" legacyBehavior><a className={style.link} >Contactez-nous</a></Link><p>|</p>
|
||||
{!session && <><Link href="/connexion" legacyBehavior><a className={style.link} >Connexion</a></Link></>}
|
||||
{session && <><Link href="/mon-compte" legacyBehavior><a className={style.link} >Mon compte</a></Link><p>|</p></>}
|
||||
{session && <><Link href="/" legacyBehavior><a onClick={() => signOut()} className={style.link} >Se déconnecter</a></Link></>}
|
||||
{session && <><Link href="#" legacyBehavior><a onClick={() => logout()} className={style.link} >Se déconnecter</a></Link></>}
|
||||
|
||||
|
||||
{session && <span className={`${style.connexion} badge rounded-pill bg-light text-dark`}>Vous-êtes connecté <FiArrowRight /> {session.user.email}</span>}
|
||||
|
||||
Reference in new issue
Block a user