Add search to bottom nav bar. Add back Home title to home page.
This commit is contained in:
parent
7c710ba598
commit
015e86afcb
|
@ -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) => ({
|
||||||
|
|
|
@ -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
|
||||||
? []
|
? []
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user