trim copy on sort & bounty tooltips

This commit is contained in:
Sinclair Chen 2022-10-02 08:52:53 -07:00
parent 0b0b84a6ad
commit 1d645e5ff8
2 changed files with 10 additions and 4 deletions

View File

@ -22,7 +22,10 @@ export function BountiedContractSmallBadge(props: {
return (
<Tooltip
text={CommentBountiesTooltipText(openCommentBounties)}
text={CommentBountiesTooltipText(
contract.creatorName,
openCommentBounties
)}
placement="bottom"
>
<span className="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-indigo-300 px-2 py-0.5 text-xs font-medium text-white">
@ -33,8 +36,11 @@ export function BountiedContractSmallBadge(props: {
)
}
export const CommentBountiesTooltipText = (openCommentBounties: number) =>
`The creator of this market may award ${formatMoney(
export const CommentBountiesTooltipText = (
creator: string,
openCommentBounties: number
) =>
`${creator} may award ${formatMoney(
COMMENT_BOUNTY_AMOUNT
)} for good comments. ${formatMoney(
openCommentBounties

View File

@ -159,7 +159,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: {
<Tooltip
text={
sort === 'Best'
? 'Comments with tips or bounties will be shown first. Your comments made within the last 10 minutes will temporarily appear (to you) first.'
? 'Highest tips + bounties first. Your new comments briefly appear to you first.'
: ''
}
>