generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#19] Add header element and pass user instead of context for Outlet …
…in router
- Loading branch information
1 parent
126b62e
commit 98c2cf4
Showing
3 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { User } from 'types/User'; | ||
|
||
type HeaderProps = { | ||
user: User; | ||
}; | ||
|
||
function Header({ user }: HeaderProps) { | ||
return ( | ||
<header className="flex w-screen flex-row items-center justify-between p-0"> | ||
<div className="">Test logo for {user.email}</div> | ||
<div className="profile-image">Test image for {user.name}</div> | ||
</header> | ||
); | ||
} | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters