Show Market tags if no communities.
This commit is contained in:
parent
95268844aa
commit
32ce410092
|
@ -18,7 +18,7 @@ import { ContractFeed } from './contract-feed'
|
||||||
import { TweetButton } from './tweet-button'
|
import { TweetButton } from './tweet-button'
|
||||||
import { Bet } from '../../common/bet'
|
import { Bet } from '../../common/bet'
|
||||||
import { Comment } from '../../common/comment'
|
import { Comment } from '../../common/comment'
|
||||||
import { RevealableTagsInput } from './tags-input'
|
import { RevealableTagsInput, TagsInput } from './tags-input'
|
||||||
import BetRow from './bet-row'
|
import BetRow from './bet-row'
|
||||||
import { Fold } from '../../common/fold'
|
import { Fold } from '../../common/fold'
|
||||||
import { FoldTagList } from './tags-list'
|
import { FoldTagList } from './tags-list'
|
||||||
|
@ -89,19 +89,26 @@ export const ContractOverview = (props: {
|
||||||
<ContractProbGraph contract={contract} />
|
<ContractProbGraph contract={contract} />
|
||||||
|
|
||||||
<Row className="hidden sm:flex justify-between items-center mt-6 ml-4 gap-4">
|
<Row className="hidden sm:flex justify-between items-center mt-6 ml-4 gap-4">
|
||||||
<FoldTagList folds={folds} />
|
{folds.length === 0 ? (
|
||||||
|
<TagsInput className={clsx('mx-4')} contract={contract} />
|
||||||
|
) : (
|
||||||
|
<FoldTagList folds={folds} />
|
||||||
|
)}
|
||||||
<TweetButton tweetText={tweetText} />
|
<TweetButton tweetText={tweetText} />
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Col className="sm:hidden mt-6 ml-4 gap-4">
|
<Col className="sm:hidden mt-6 ml-4 gap-4">
|
||||||
<TweetButton className="self-end" tweetText={tweetText} />
|
<TweetButton className="self-end" tweetText={tweetText} />
|
||||||
<FoldTagList folds={folds} />
|
{folds.length === 0 ? (
|
||||||
|
<TagsInput contract={contract} />
|
||||||
|
) : (
|
||||||
|
<FoldTagList folds={folds} />
|
||||||
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<RevealableTagsInput
|
{folds.length > 0 && (
|
||||||
className={clsx('mx-4', folds.length > 0 && 'mt-4')}
|
<RevealableTagsInput className="mt-4 mx-4" contract={contract} />
|
||||||
contract={contract}
|
)}
|
||||||
/>
|
|
||||||
|
|
||||||
<Spacer h={12} />
|
<Spacer h={12} />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user