Skip to content

Commit

Permalink
update layout's conditional rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
NickRoccodev11 committed Oct 2, 2024
1 parent 3c48c08 commit d5a724c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ export function Layout() {
<>
<div className="Layout">
<header className="Layout-header">
<h1>CollabShop</h1>
{!!user ? (
{!!user && (
<div>
<h1>CollabShop</h1>
<span>Signed in as {auth.currentUser.displayName}</span>
</div>
) : (
<IconButton
aria-label="Sign In"
as={SignInButton}
IconComponent={FaSignInAlt}
label="Sign In"
/>
)}
</header>
<main className="Layout-main">
Expand Down

0 comments on commit d5a724c

Please sign in to comment.