Skip to content

Commit

Permalink
Updated loged in header styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelArestad committed Jan 28, 2022
1 parent 7bc2cfc commit fc1c138
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -38,7 +38,11 @@ export const Header = ({ user, isLoggedIn, onLogin, onLogout, onCreateAccount }:
<h1>Acme</h1>
</div>
<div>
{user && <span>Hello, {user.name}!</span>}
{user && (
<span className="welcome">
Welcome, <b>{user.name}</b>!
</span>
)}
{isLoggedIn ? (
<Button size="small" onClick={onLogout} label="Log out" />
) : (
Expand Down
Expand Up @@ -24,3 +24,9 @@ h1 {
button + button {
margin-left: 10px;
}

.welcome {
color: #333;
font-size: 14px;
margin-right: 10px;
}

0 comments on commit fc1c138

Please sign in to comment.