Skip to content

Commit

Permalink
fix magic link sign in issue
Browse files Browse the repository at this point in the history
  • Loading branch information
br4adam committed Jun 29, 2023
1 parent 639c52c commit 0d4603e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ const Header = () => {
return (
<header className="sticky top-0 z-30 w-full py-2 border-b backdrop-blur-xl backdrop-saturate-150 bg-zinc-900/40 border-zinc-700">
<div className="flex items-center justify-between w-11/12 max-w-6xl gap-2 mx-auto md:w-10/12">
{ session
? <div className="flex gap-2">
<img className="w-6 rounded-full" src={session.user.user_metadata.avatar_url || defaultProfilePicture} alt="profile picture" />
<p className="truncate">Hello {session.user.user_metadata.name || session.user.user_metadata.email.split("@")[0]}!</p>
</div>
: <p className="font-bold">Bookmarks</p>
}
{ session && <img className="w-6 rounded-full" src={session.user.user_metadata.avatar_url || defaultProfilePicture} alt="profile picture" /> }
<p className="font-bold">Bookmarks</p>
{ session && <CommandMenu /> }
<Login>Login</Login>
</div>
Expand Down

0 comments on commit 0d4603e

Please sign in to comment.