Hide "Add Funds" and "Personalize your feed"
This commit is contained in:
parent
c1fd17aba1
commit
3633167d8a
|
@ -3,6 +3,7 @@ import { formatMoney } from '../../common/util/format'
|
||||||
import { Avatar } from './avatar'
|
import { Avatar } from './avatar'
|
||||||
import { Col } from './layout/col'
|
import { Col } from './layout/col'
|
||||||
import { MenuButton } from './menu'
|
import { MenuButton } from './menu'
|
||||||
|
import { IS_PRIVATE_MANIFOLD } from '../lib/firebase/init'
|
||||||
|
|
||||||
export function ProfileMenu(props: { user: User | undefined }) {
|
export function ProfileMenu(props: { user: User | undefined }) {
|
||||||
const { user } = props
|
const { user } = props
|
||||||
|
@ -54,10 +55,15 @@ function getNavigationOptions(
|
||||||
name: 'Your trades',
|
name: 'Your trades',
|
||||||
href: '/trades',
|
href: '/trades',
|
||||||
},
|
},
|
||||||
{
|
// Disable "Add Funds" for teams
|
||||||
name: 'Add funds',
|
...(IS_PRIVATE_MANIFOLD
|
||||||
href: '/add-funds',
|
? []
|
||||||
},
|
: [
|
||||||
|
{
|
||||||
|
name: 'Add funds',
|
||||||
|
href: '/add-funds',
|
||||||
|
},
|
||||||
|
]),
|
||||||
{
|
{
|
||||||
name: 'Leaderboards',
|
name: 'Leaderboards',
|
||||||
href: '/leaderboards',
|
href: '/leaderboards',
|
||||||
|
|
|
@ -26,6 +26,7 @@ import {
|
||||||
import { useGetRecentBets } from '../hooks/use-bets'
|
import { useGetRecentBets } from '../hooks/use-bets'
|
||||||
import { usePropz } from '../hooks/use-propz'
|
import { usePropz } from '../hooks/use-propz'
|
||||||
import { useActiveContracts } from '../hooks/use-contracts'
|
import { useActiveContracts } from '../hooks/use-contracts'
|
||||||
|
import { IS_PRIVATE_MANIFOLD } from '../lib/firebase/init'
|
||||||
|
|
||||||
export async function getStaticPropz() {
|
export async function getStaticPropz() {
|
||||||
const contractInfo = await getAllContractInfo()
|
const contractInfo = await getAllContractInfo()
|
||||||
|
@ -82,7 +83,8 @@ const Home = (props: {
|
||||||
<Spacer h={6} />
|
<Spacer h={6} />
|
||||||
|
|
||||||
{initialFollowedFoldSlugs !== undefined &&
|
{initialFollowedFoldSlugs !== undefined &&
|
||||||
initialFollowedFoldSlugs.length === 0 && (
|
initialFollowedFoldSlugs.length === 0 &&
|
||||||
|
!IS_PRIVATE_MANIFOLD && (
|
||||||
<FastFoldFollowing
|
<FastFoldFollowing
|
||||||
user={user}
|
user={user}
|
||||||
followedFoldSlugs={initialFollowedFoldSlugs}
|
followedFoldSlugs={initialFollowedFoldSlugs}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user