hide comment sort, trade tab if no items
This commit is contained in:
parent
39638a3888
commit
11bd658c68
|
@ -53,7 +53,7 @@ export function ContractTabs(props: {
|
|||
title: 'Comments',
|
||||
content: <CommentsTabContent contract={contract} comments={comments} />,
|
||||
},
|
||||
{
|
||||
bets.length > 0 && {
|
||||
title: capitalize(PAST_BETS),
|
||||
content: <BetsTabContent contract={contract} bets={bets} />,
|
||||
},
|
||||
|
@ -150,6 +150,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: {
|
|||
<>
|
||||
<ContractCommentInput className="mb-5" contract={contract} />
|
||||
|
||||
{comments.length > 0 && (
|
||||
<Row className="mb-4 items-center">
|
||||
<Button
|
||||
size={'xs'}
|
||||
|
@ -163,12 +164,13 @@ const CommentsTabContent = memo(function CommentsTabContent(props: {
|
|||
: ''
|
||||
}
|
||||
>
|
||||
Sorted by: {sort}
|
||||
Sort by: {sort}
|
||||
</Tooltip>
|
||||
</Button>
|
||||
|
||||
<BountiedContractSmallBadge contract={contract} showAmount />
|
||||
</Row>
|
||||
)}
|
||||
|
||||
{topLevelComments.map((parent) => (
|
||||
<FeedCommentThread
|
||||
|
|
Loading…
Reference in New Issue
Block a user