Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hee-suh committed Mar 19, 2023
2 parents 8abdb9f + 4bf85af commit bddde4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bowwowcare/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ function Header() {
JSON.parse(localStorage.getItem("user")) ? (
window.location.pathname === "/user" ? <button className="text-right" onClick={handleLogout}>로그아웃</button> :
<button onClick={handleUser}>
{isProfile() ?
<img src={isProfile()} className="w-8 h-8 rounded-full"></img>:
{!isProfile() || isProfile() === "null" ?
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" className="bi bi-person fill-gray-500" viewBox="0 0 16 16">
<path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z"/>
</svg>
</svg>
:
<img src={isProfile()} className="w-8 h-8 rounded-full"></img>
}
</button>
) : (
Expand Down

0 comments on commit bddde4c

Please sign in to comment.