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

Commit

Permalink
feat: account nav button use profile picture (#9703)
Browse files Browse the repository at this point in the history
* Account Button replaced with User's GitHub Profile Picture

* design changes to the profile button

* additional div fixed

* navbar closing issue solved
  • Loading branch information
anirudhp26 committed Nov 17, 2023
1 parent 596e9fe commit 2d15ac3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions components/navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import NavLink from "@components/navbar/NavLink";
import Link from "@components/Link";
import { useTheme } from "next-themes";
import { classNames } from "@services/utils/classNames";
import Image from "next/image";

import { FaGithub } from "react-icons/fa6";
import SunIcon from "@heroicons/react/20/solid/SunIcon";
Expand Down Expand Up @@ -115,10 +116,16 @@ export default function Navbar() {

{session && (
<>
<NavLink
item={{ name: "Account", url: "/account/onboarding" }}
setIsOpen={setIsOpen}
/>
<Link href="/account/onboarding" aria-label="Account">
<Image
className="flex-none hover:ring-2 hover:ring-tertiary-medium rounded-full mx-2"
width={40}
height={40}
onClick={() => setIsOpen(false)}
src={`https://github.com/${session.username}.png`}
alt="Account"
/>
</Link>
<NavLink
item={{ name: "Logout", url: "/" }}
setIsOpen={setIsOpen}
Expand Down

0 comments on commit 2d15ac3

Please sign in to comment.