Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Update LeftBar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrsin committed May 8, 2023
1 parent c1e99d9 commit 821d988
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webapp/src/components/leftBar/LeftBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ function LeftBar(): JSX.Element{
<div className="leftbarWrapper">
<ul className="sidebarList">
<li className="sidebarListItem">
<Link to={"/main/profile/"+user} style={{ textDecoration: 'none', color: 'inherit' }} id="profileLB">
<Link to={useSession().session.info.isLoggedIn ?"/main/profile/"+user:"/"} style={{ textDecoration: 'none', color: 'inherit' }} id="profileLB">
<PersonIcon className="sidebarIcon"/>
Profile
</Link>
</li>
<li className="sidebarListItem">
<Link to="/main/landmarks/add" style={{ textDecoration: 'none', color: 'inherit' }} id="addlandmarkLB">
<Link to={useSession().session.info.isLoggedIn ?"/main/landmarks/add":"/"} style={{ textDecoration: 'none', color: 'inherit' }} id="addlandmarkLB">
<LocationOnIcon className="sidebarIcon"/>
Add a landmark
</Link>
</li>
<li className="sidebarListItem">
<Link to={"/main/landmarks/filter/"+user} style={{ textDecoration: 'none', color: 'inherit' }} id="seelandmarksLB">
<Link to={useSession().session.info.isLoggedIn ? "/main/landmarks/filter/"+user: "/"} style={{ textDecoration: 'none', color: 'inherit' }} id="seelandmarksLB">
<LocationOnIcon className="sidebarIcon"/>
See friends' landmarks
</Link>
Expand All @@ -51,7 +51,7 @@ function LeftBar(): JSX.Element{
</Link>
</li> */}
<li className="sidebarListItem">
<Link to={"/main/friends/"+user} style={{ textDecoration: 'none', color: 'inherit' }} id="friendsLB">
<Link to={useSession().session.info.isLoggedIn ?"/main/friends/"+user:"/"} style={{ textDecoration: 'none', color: 'inherit' }} id="friendsLB">
<PeopleAltIcon className="sidebarIcon"/>
Friends
</Link>
Expand Down

0 comments on commit 821d988

Please sign in to comment.