Skip to content

Commit

Permalink
mob nav corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
AchyuthMohan committed Dec 9, 2022
1 parent 32ed7e4 commit 632845e
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,35 @@ function Navbar() {
>
Reviews
</Link>
<Link
{/* <Link
to="/"
className="nav_item_mob"
spy={true}
smooth={true}
onClick={handleDrawerClose}
>
Logout
</Link>
</Link> */}
{
(localStorage.getItem('refresh_token'))?((<Link
to="/"
className="nav_item_mob"
spy={true}
smooth={true}
onClick={()=>{Logout();} }

>
Logout
</Link> )):(( <Link
to="/login"
className="nav_item_mob"
spy={true}
smooth={true}
onClick={handleDrawerClose}
>
Login
</Link>))
}
<Link
to="/team"
className="nav_item_mob"
Expand Down

0 comments on commit 632845e

Please sign in to comment.