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() {
|
||||
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) => ({
|
||||
|
|
|
@ -121,7 +121,6 @@ const signedOutMobileNavigation = [
|
|||
]
|
||||
|
||||
const signedInMobileNavigation = [
|
||||
{ name: 'Search', href: '/search', icon: SearchIcon },
|
||||
{ name: 'Tournaments', href: '/tournaments', icon: TrophyIcon },
|
||||
...(IS_PRIVATE_MANIFOLD
|
||||
? []
|
||||
|
|
|
@ -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() {
|
|||
<Toaster />
|
||||
|
||||
<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'}>
|
||||
<SearchRow />
|
||||
<Row className={'mb-2 w-full items-center justify-between gap-8'}>
|
||||
<Title className="!mt-0" text="Home" />
|
||||
<DailyStats user={user} />
|
||||
</Row>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user