Skip to content

Commit 467e780

Browse files
committed
Add userinfo to frontpage
1 parent 8f85833 commit 467e780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/client/src/components/Layout/Navbar.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Button from '../Button';
55
import Container from '../Container';
66
import { UserContext } from '../../context/UserContext';
77
import StockedUpLogo from '../StockedUpLogo';
8+
import UserInfo from '../UserInfo';
89

910
function Navbar() {
1011
const { isAuthenticated, user } = useContext(UserContext);
@@ -44,7 +45,7 @@ function Navbar() {
4445
</li>
4546
</ul>
4647
) : (
47-
<span>{user.email}</span>
48+
<UserInfo />
4849
)}
4950

5051
<Link to={isAuthenticated ? 'dashboard' : 'register'}>

0 commit comments

Comments
 (0)