From c20b6bea708d1f679cd36666ff3d1795ce7ef818 Mon Sep 17 00:00:00 2001 From: LucasLassiter Date: Wed, 11 May 2022 14:56:59 -0700 Subject: [PATCH] changes --- components/Navbar.js | 6 +- lib/context.js | 3 + lib/firebase.js | 8 +- package-lock.json | 894 ++++++++++++++++--------------------------- package.json | 5 +- pages/_app.js | 29 +- pages/enter.js | 5 +- 7 files changed, 371 insertions(+), 579 deletions(-) create mode 100644 lib/context.js 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 (