Skip to content

Commit

Permalink
Fix: replace with a tag
Browse files Browse the repository at this point in the history
- need server side routing here because server side data won't be updated otherwise
  • Loading branch information
akhilalekha committed Aug 9, 2021
1 parent cd2f01b commit 70ffcb7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions component/layout/Profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default function Profile({ onLogout, username }) {
</div>
<ul>
<li>
<Link href={`/u/${userCookie.username}`}>
<a className="linkUnderline w-full font-semibold">
<a href={`/u/${userCookie.username}`}>
<button className="linkUnderline w-full font-semibold">
Profile
<svg
className="ml-3"
Expand All @@ -50,16 +50,15 @@ export default function Profile({ onLogout, username }) {
fill="#878787"
/>
</svg>
</a>
</Link>
</button>
</a>
</li>
<li>
<Link href="/settings">
<a className="linkUnderline w-full font-semibold">Settings</a>
</Link>
</li>
<li>
{/* <a onClick={onLogout}>Logout</a> */}
<button
onClick={onLogout}
className="linkUnderline w-full font-semibold"
Expand Down

0 comments on commit 70ffcb7

Please sign in to comment.