Add search to bottom nav bar. Add back Home title to home page.

This commit is contained in:
James Grugett 2022-09-16 17:24:30 -05:00
parent 7c710ba598
commit 015e86afcb
3 changed files with 5 additions and 4 deletions

View File

@ -24,6 +24,7 @@ import { PAST_BETS } from 'common/user'
function getNavigation() { function getNavigation() {
return [ return [
{ name: 'Home', href: '/home', icon: HomeIcon }, { name: 'Home', href: '/home', icon: HomeIcon },
{ name: 'Search', href: '/search', icon: SearchIcon },
{ {
name: 'Notifications', name: 'Notifications',
href: `/notifications`, href: `/notifications`,
@ -34,7 +35,7 @@ function getNavigation() {
const signedOutNavigation = [ const signedOutNavigation = [
{ name: 'Home', href: '/', icon: HomeIcon }, { name: 'Home', href: '/', icon: HomeIcon },
{ name: 'Explore', href: '/home', icon: SearchIcon }, { name: 'Explore', href: '/search', icon: SearchIcon },
] ]
export const userProfileItem = (user: User) => ({ export const userProfileItem = (user: User) => ({

View File

@ -121,7 +121,6 @@ const signedOutMobileNavigation = [
] ]
const signedInMobileNavigation = [ const signedInMobileNavigation = [
{ name: 'Search', href: '/search', icon: SearchIcon },
{ name: 'Tournaments', href: '/tournaments', icon: TrophyIcon }, { name: 'Tournaments', href: '/tournaments', icon: TrophyIcon },
...(IS_PRIVATE_MANIFOLD ...(IS_PRIVATE_MANIFOLD
? [] ? []

View File

@ -47,6 +47,7 @@ import { filterDefined } from 'common/util/array'
import { updateUser } from 'web/lib/firebase/users' import { updateUser } from 'web/lib/firebase/users'
import { isArray, keyBy } from 'lodash' import { isArray, keyBy } from 'lodash'
import { usePrefetch } from 'web/hooks/use-prefetch' import { usePrefetch } from 'web/hooks/use-prefetch'
import { Title } from 'web/components/title'
export default function Home() { export default function Home() {
const user = useUser() const user = useUser()
@ -75,8 +76,8 @@ export default function Home() {
<Toaster /> <Toaster />
<Col className="pm:mx-10 gap-4 px-4 pb-12 pt-4 sm:pt-0"> <Col className="pm:mx-10 gap-4 px-4 pb-12 pt-4 sm:pt-0">
<Row className={'mb-2 w-full items-center gap-8'}> <Row className={'mb-2 w-full items-center justify-between gap-8'}>
<SearchRow /> <Title className="!mt-0" text="Home" />
<DailyStats user={user} /> <DailyStats user={user} />
</Row> </Row>