trim copy on sort & bounty tooltips
This commit is contained in:
		
							parent
							
								
									0b0b84a6ad
								
							
						
					
					
						commit
						1d645e5ff8
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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.' | ||||
|                   : '' | ||||
|               } | ||||
|             > | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user