From 015e86afcbd729e85a7bb5cf35722509a1432bce Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 16 Sep 2022 17:24:30 -0500 Subject: [PATCH] Add search to bottom nav bar. Add back Home title to home page. --- web/components/nav/bottom-nav-bar.tsx | 3 ++- web/components/nav/sidebar.tsx | 1 - web/pages/home/index.tsx | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/components/nav/bottom-nav-bar.tsx b/web/components/nav/bottom-nav-bar.tsx index 778cdd1a..aeb5a2bc 100644 --- a/web/components/nav/bottom-nav-bar.tsx +++ b/web/components/nav/bottom-nav-bar.tsx @@ -24,6 +24,7 @@ import { PAST_BETS } from 'common/user' function getNavigation() { return [ { name: 'Home', href: '/home', icon: HomeIcon }, + { name: 'Search', href: '/search', icon: SearchIcon }, { name: 'Notifications', href: `/notifications`, @@ -34,7 +35,7 @@ function getNavigation() { const signedOutNavigation = [ { name: 'Home', href: '/', icon: HomeIcon }, - { name: 'Explore', href: '/home', icon: SearchIcon }, + { name: 'Explore', href: '/search', icon: SearchIcon }, ] export const userProfileItem = (user: User) => ({ diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index c7b47b9a..ae03655b 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -121,7 +121,6 @@ const signedOutMobileNavigation = [ ] const signedInMobileNavigation = [ - { name: 'Search', href: '/search', icon: SearchIcon }, { name: 'Tournaments', href: '/tournaments', icon: TrophyIcon }, ...(IS_PRIVATE_MANIFOLD ? [] diff --git a/web/pages/home/index.tsx b/web/pages/home/index.tsx index 1fc94c90..872bdda5 100644 --- a/web/pages/home/index.tsx +++ b/web/pages/home/index.tsx @@ -47,6 +47,7 @@ import { filterDefined } from 'common/util/array' import { updateUser } from 'web/lib/firebase/users' import { isArray, keyBy } from 'lodash' import { usePrefetch } from 'web/hooks/use-prefetch' +import { Title } from 'web/components/title' export default function Home() { const user = useUser() @@ -75,8 +76,8 @@ export default function Home() { - - + + <DailyStats user={user} /> </Row>