+ {/* ... voting buttons ... */}
= ({
showTooltip={showTooltips}
/>
)}
- {(onTip || totalAwarded > 0) &&
- (showTooltips && totalAwarded > 0 ? (
-
- }
- position="top"
- width="w-[320px]"
- >
- {onTip ? (
-
- ) : (
-
-
- {totalAwarded > 0 ? (
-
- {formatCurrency({
- amount: totalAwarded,
- showUSD,
- exchangeRate,
- shorten: true,
- })}
-
- ) : (
- Tip
- )}
-
- )}
-
- ) : onTip ? (
-
+ ) : (
+
+
+
+ {formatCurrency({ amount: tipAmount, showUSD, exchangeRate, shorten: true })}
+
+
+ )}
+
+ )}
+
+ {/* Bounty Awarded Badge */}
+ {hasBountyAwards && (
+
+ Bounty Awarded
+ Total amount awarded from bounties on this document.
+
+ }
+ position="top"
+ width="w-[240px]"
+ disabled={!showTooltips}
+ >
-
- {totalAwarded > 0 ? (
-
- {formatCurrency({ amount: totalAwarded, showUSD, exchangeRate, shorten: true })}
-
- ) : (
- Tip
- )}
+
+
+ {formatCurrency({
+ amount: awardedBountyAmount || 0,
+ showUSD,
+ exchangeRate,
+ shorten: true,
+ })}
+ {!showUSD && ' RSC'}
+
- ))}
+
+ )}
{showInlineReviews &&
(showTooltips && reviews.length > 0 ? (
= ({
onClick={handleBountyClick}
/>
))}
+
+ {/* Inline Award Button - For bounty creators to award specific comments */}
+ {feedContentType === 'COMMENT' && onAward && (
+
+ )}
+
{children}
diff --git a/components/banners/EarningOpportunityBanner.tsx b/components/banners/EarningOpportunityBanner.tsx
index 260b6404a..bf724e406 100644
--- a/components/banners/EarningOpportunityBanner.tsx
+++ b/components/banners/EarningOpportunityBanner.tsx
@@ -48,7 +48,7 @@ export const EarningOpportunityBanner = ({
} else {
const bountiesUrl = buildWorkUrl({
id: work.id,
- contentType: work.contentType === 'paper' ? 'paper' : 'post',
+ contentType: work.contentType,
slug: work.slug,
tab: 'bounties',
});
diff --git a/hooks/useBounties.ts b/hooks/useBounties.ts
index 14f11c157..ad447c49d 100644
--- a/hooks/useBounties.ts
+++ b/hooks/useBounties.ts
@@ -67,6 +67,7 @@ export const useBounties = () => {
const [selectedHubs, setSelectedHubs] = useState