diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx index de4d6e22..46fd99c5 100644 --- a/web/components/feed-create.tsx +++ b/web/components/feed-create.tsx @@ -85,7 +85,7 @@ export default function FeedCreate(props: { return (
- + - {ENV_CONFIG.navbarLogoPath ? ( - - ) : ( - <> -
- Manifold -
- Markets -
- - - )} + + {!hideText && + (ENV_CONFIG.navbarLogoPath ? ( + + ) : ( + <> +
+ Manifold +
+ Markets +
+ + + ))}
) diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx index f600d994..e4e65dd6 100644 --- a/web/components/nav/nav-bar.tsx +++ b/web/components/nav/nav-bar.tsx @@ -2,10 +2,7 @@ import clsx from 'clsx' import Link from 'next/link' import { useUser } from '../../hooks/use-user' -import { Row } from '../layout/row' import { firebaseLogin, User } from '../../lib/firebase/users' -import { ManifoldLogo } from './manifold-logo' -import { ProfileMenu } from './profile-menu' import { CollectionIcon, HomeIcon, @@ -13,50 +10,12 @@ import { UserGroupIcon, } from '@heroicons/react/outline' -export function NavBar(props: { - darkBackground?: boolean - wide?: boolean - assertUser?: 'signed-in' | 'signed-out' - className?: string -}) { - const { darkBackground, wide, assertUser, className } = props - - const user = useUser() - - const hoverClasses = - 'hover:underline hover:decoration-indigo-400 hover:decoration-2' - const themeClasses = clsx(darkBackground && 'text-white', hoverClasses) - - return ( - <> - - {user && } - - ) -} - // From https://codepen.io/chris__sev/pen/QWGvYbL -function BottomNavBar(props: { user: User }) { - const { user } = props +export function BottomNavBar() { + const user = useUser() + if (!user) { + return null + } return (