Remove Communities: Not shown in navigation or market info
This commit is contained in:
parent
a09af526a0
commit
ec63464461
|
@ -7,8 +7,6 @@ import { Bet } from '../../../common/bet'
|
|||
|
||||
import { Contract } from '../../../common/contract'
|
||||
import { formatMoney } from '../../../common/util/format'
|
||||
import { useFoldsWithTags } from '../../hooks/use-fold'
|
||||
import { useUser } from '../../hooks/use-user'
|
||||
import {
|
||||
contractPath,
|
||||
getBinaryProbPercent,
|
||||
|
@ -19,7 +17,6 @@ import { Modal } from '../layout/modal'
|
|||
import { Row } from '../layout/row'
|
||||
import { ShareEmbedButton } from '../share-embed-button'
|
||||
import { TagsInput } from '../tags-input'
|
||||
import { FoldTagList } from '../tags-list'
|
||||
import { Title } from '../title'
|
||||
import { TweetButton } from '../tweet-button'
|
||||
|
||||
|
@ -28,12 +25,6 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
|
|||
|
||||
const [open, setOpen] = useState(false)
|
||||
|
||||
const user = useUser()
|
||||
|
||||
const folds = (useFoldsWithTags(contract.tags) ?? []).filter(
|
||||
(fold) => fold.followCount > 1 || user?.id === fold.curatorId
|
||||
)
|
||||
|
||||
const formatTime = (dt: number) => dayjs(dt).format('MMM DD, YYYY hh:mm a z')
|
||||
|
||||
const { createdTime, closeTime, resolutionTime } = contract
|
||||
|
@ -116,9 +107,6 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
|
|||
<ShareEmbedButton contract={contract} />
|
||||
</Row>
|
||||
<div />
|
||||
<div className="text-gray-500">Communities</div>
|
||||
<FoldTagList folds={folds} noLabel />
|
||||
<div />
|
||||
|
||||
<div className="text-gray-500">Tags</div>
|
||||
<TagsInput contract={contract} />
|
||||
|
|
|
@ -10,7 +10,6 @@ import { ContractDetails, ResolutionOrChance } from './contract-card'
|
|||
import { Bet } from '../../../common/bet'
|
||||
import { Comment } from '../../../common/comment'
|
||||
import BetRow from '../bet-row'
|
||||
import { ContractActivity } from '../feed/contract-activity'
|
||||
import { AnswersGraph } from '../answers/answers-graph'
|
||||
import { DPM, FreeResponse, FullContract } from '../../../common/contract'
|
||||
import { ContractDescription } from './contract-description'
|
||||
|
|
|
@ -12,7 +12,6 @@ export function getNavigationOptions(user?: User | null) {
|
|||
if (!user) {
|
||||
return [
|
||||
{ name: 'Leaderboards', href: '/leaderboards' },
|
||||
{ name: 'Communities', href: '/folds' },
|
||||
{ name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh' },
|
||||
]
|
||||
}
|
||||
|
@ -20,7 +19,6 @@ export function getNavigationOptions(user?: User | null) {
|
|||
return [
|
||||
{ name: 'Add funds', href: '/add-funds' },
|
||||
{ name: 'Leaderboards', href: '/leaderboards' },
|
||||
{ name: 'Communities', href: '/folds' },
|
||||
{ name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh' },
|
||||
{ name: 'About', href: 'https://docs.manifold.markets' },
|
||||
{ name: 'Sign out', href: '#', onClick: () => firebaseLogout() },
|
||||
|
|
|
@ -34,7 +34,6 @@ const signedOutNavigation = [
|
|||
|
||||
const signedOutMobileNavigation = [
|
||||
{ name: 'Leaderboards', href: '/leaderboards', icon: CakeIcon },
|
||||
{ name: 'Communities', href: '/folds', icon: UserGroupIcon },
|
||||
{ name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh', icon: ChatIcon },
|
||||
{ name: 'About', href: 'https://docs.manifold.markets', icon: BookOpenIcon },
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user