Option to disallow market creation from fold

This commit is contained in:
James Grugett 2022-01-31 22:10:02 -06:00
parent 5b5e6c78d6
commit 4e1174a4dc
2 changed files with 3 additions and 1 deletions

View File

@ -17,4 +17,6 @@ export type Fold = {
excludedCreatorIds?: string[] excludedCreatorIds?: string[]
followCount: number followCount: number
disallowMarketCreation?: boolean
} }

View File

@ -239,7 +239,7 @@ export default function FoldPage(props: {
{(page === 'activity' || page === 'markets') && ( {(page === 'activity' || page === 'markets') && (
<Row className={clsx(page === 'activity' ? 'gap-16' : 'gap-8')}> <Row className={clsx(page === 'activity' ? 'gap-16' : 'gap-8')}>
<Col className="flex-1"> <Col className="flex-1">
{user !== null && ( {user !== null && !fold.disallowMarketCreation && (
<FeedCreate <FeedCreate
className={clsx('border-b-2', page !== 'activity' && 'hidden')} className={clsx('border-b-2', page !== 'activity' && 'hidden')}
user={user} user={user}