doc: add conditional rendering to Hello text
This commit is contained in:
1 parent
e2a136a4ef
commit
2e512535a0
1 file changed
+3
-1
@@ -32,7 +32,9 @@ function Header() {
|
|||||||
<nav className="header__nav">
|
<nav className="header__nav">
|
||||||
<Link to={!user && "/login"}>
|
<Link to={!user && "/login"}>
|
||||||
<section onClick={authHandle} className="header__option">
|
<section onClick={authHandle} className="header__option">
|
||||||
<span className="header__optionLineOne">Hello</span>
|
<span className="header__optionLineOne">
|
||||||
|
Hello, {!user ? "Guest" : user.email}
|
||||||
|
</span>
|
||||||
<span className="header__optionLineTwo">
|
<span className="header__optionLineTwo">
|
||||||
{user ? "Sign Out" : "Sign In"}
|
{user ? "Sign Out" : "Sign In"}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in new issue
Block a user