Don't require sign in for bottom navbar

This commit is contained in:
Austin Chen 2022-04-02 09:42:01 -07:00
parent 7ad331bc3d
commit 55c6481d5b

View File

@ -15,10 +15,6 @@ import Sidebar from './sidebar'
// From https://codepen.io/chris__sev/pen/QWGvYbL // From https://codepen.io/chris__sev/pen/QWGvYbL
export function BottomNavBar() { export function BottomNavBar() {
const [sidebarOpen, setSidebarOpen] = useState(false) const [sidebarOpen, setSidebarOpen] = useState(false)
const user = useUser()
if (!user) {
return null
}
return ( return (
<nav className="fixed inset-x-0 bottom-0 z-20 flex justify-between border-t-2 bg-white text-xs text-gray-700 lg:hidden"> <nav className="fixed inset-x-0 bottom-0 z-20 flex justify-between border-t-2 bg-white text-xs text-gray-700 lg:hidden">
<Link href="/home"> <Link href="/home">