diff --git a/components/Navbar.js b/components/Navbar.js index 854c905..8146d6f 100644 --- a/components/Navbar.js +++ b/components/Navbar.js @@ -1,8 +1,10 @@ import Link from 'next/link'; +import { useContext } from 'react'; +import { UserContext } from '../lib/context'; export default function Navbar() { - const user = null; - const username = null; + + const { user, username } = useContext(UserContext); return (