diff --git a/frontend/src/components/ContributorProfile.tsx b/frontend/src/components/ContributorProfile.tsx index 43f76e9a..b9d266a9 100644 --- a/frontend/src/components/ContributorProfile.tsx +++ b/frontend/src/components/ContributorProfile.tsx @@ -5,11 +5,13 @@ import type { ContributorBadgeStats } from '../types/badges'; import { computeBadges } from '../types/badges'; import { BadgeGrid } from './badges'; import { TimeAgo } from './common/TimeAgo'; +import { BountyTags } from './bounties/BountyTags'; +import type { BountyTier } from '../types/bounty'; interface RecentBounty { title: string; issueUrl: string; - tier: 1 | 2 | 3; + tier: BountyTier; earned: number; completedAt: string; } @@ -111,10 +113,6 @@ function formatJoinDate(isoDate: string): string { return `Member since ${month} ${d.getFullYear()}`; } -function tierLabel(tier: 1 | 2 | 3): string { - return `T${tier}`; -} - export const ContributorProfile: React.FC = ({ username, avatarUrl, @@ -276,13 +274,18 @@ export const ContributorProfile: React.FC = ({

{bounty.title}

-

- {tierLabel(bounty.tier)} · {bounty.earned.toLocaleString()} FNDRY · {new Date(bounty.completedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })} -

+
+ + + {bounty.earned.toLocaleString()} FNDRY · {new Date(bounty.completedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })} + +
- - {tierLabel(bounty.tier)} -
))} diff --git a/frontend/src/components/bounties/CreatorBountyCard.tsx b/frontend/src/components/bounties/CreatorBountyCard.tsx index 3a5a8246..d9f6a747 100644 --- a/frontend/src/components/bounties/CreatorBountyCard.tsx +++ b/frontend/src/components/bounties/CreatorBountyCard.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react'; import { useToast } from '../../hooks/useToast'; +import { BountyTags } from './BountyTags'; interface Submission { id: string; @@ -139,6 +140,16 @@ export function CreatorBountyCard({ bounty, onUpdate }: CreatorBountyCardProps) )} + +
{bounty.status.replace(/_/g, ' ')}