File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,16 @@ interface ReputationCardProps {
32
32
*/
33
33
export default function ReputationCard ( { details = { } } : ReputationCardProps ) : ReactElement {
34
34
return (
35
- < div className = "flex space-x-3 text-left hover:bg-gray-50 pb-3 -mx-5 px-5" >
36
- < Avatar icon = { details . community ?. icon } color = { details . community ?. colors ?. cover ?. background || details . community ?. colors . primary } size = "medium" shape = "rounded" />
35
+ < div className = "flex space-x-3 text-left hover:bg-gray-50 py-3 -mx-5 px-5 relative" >
36
+ < Avatar
37
+ icon = { details . community ?. icon }
38
+ color = { details . community ?. colors ?. cover ?. background || details . community ?. colors . primary }
39
+ size = "medium"
40
+ shape = "rounded"
41
+ useLink = { false }
42
+ />
37
43
{ details ?. score && (
38
- < Link href = { details ?. community ? `/communities/${ details . community . slug } ` : "" } className = "pt-1" >
44
+ < Link href = { details ?. community ? `/communities/${ details . community . slug } ` : "" } className = "pt-1 before:content-[''] before:absolute before:top-0 before:left-0 before:w-full before:h-full before:z-0 before:block " >
39
45
< span className = "block text-base font-medium leading-normal" >
40
46
< Currency value = { details . score } token = "REP" />
41
47
</ span >
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default function BountiesNavigation(): ReactElement {
55
55
...UniqBy (
56
56
bounties . map ( ( bounty ) => {
57
57
return {
58
- label : bounty . name ,
58
+ label : bounty . community ,
59
59
exact : true ,
60
60
link : `/bounties/${ bounty . slug } ` ,
61
61
} ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export interface Bounty {
28
28
submissions ?: Submission ;
29
29
author ?: BountyAuthor ;
30
30
unreviewedSubmissionsCount ?: number ;
31
+ community : string ;
31
32
}
32
33
33
34
export interface BountyCourse extends Course {
You can’t perform that action at this time.
0 commit comments