trim copy on sort & bounty tooltips
This commit is contained in:
		
							parent
							
								
									0b0b84a6ad
								
							
						
					
					
						commit
						1d645e5ff8
					
				|  | @ -22,7 +22,10 @@ export function BountiedContractSmallBadge(props: { | ||||||
| 
 | 
 | ||||||
|   return ( |   return ( | ||||||
|     <Tooltip |     <Tooltip | ||||||
|       text={CommentBountiesTooltipText(openCommentBounties)} |       text={CommentBountiesTooltipText( | ||||||
|  |         contract.creatorName, | ||||||
|  |         openCommentBounties | ||||||
|  |       )} | ||||||
|       placement="bottom" |       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"> |       <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) => | export const CommentBountiesTooltipText = ( | ||||||
|   `The creator of this market may award ${formatMoney( |   creator: string, | ||||||
|  |   openCommentBounties: number | ||||||
|  | ) => | ||||||
|  |   `${creator} may award ${formatMoney( | ||||||
|     COMMENT_BOUNTY_AMOUNT |     COMMENT_BOUNTY_AMOUNT | ||||||
|   )} for good comments. ${formatMoney( |   )} for good comments. ${formatMoney( | ||||||
|     openCommentBounties |     openCommentBounties | ||||||
|  |  | ||||||
|  | @ -159,7 +159,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: { | ||||||
|             <Tooltip |             <Tooltip | ||||||
|               text={ |               text={ | ||||||
|                 sort === 'Best' |                 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