Skip to content

Commit ec9aa94

Browse files
Merge branch 'dev' into fix/show-prize-in-10k
2 parents 6e6ef6e + 456dce8 commit ec9aa94

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/components/cards/Reputation.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ interface ReputationCardProps {
3232
*/
3333
export default function ReputationCard({ details = {} }: ReputationCardProps): ReactElement {
3434
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+
/>
3743
{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">
3945
<span className="block text-base font-medium leading-normal">
4046
<Currency value={details.score} token="REP" />
4147
</span>

src/components/sections/bounties/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function BountiesNavigation(): ReactElement {
5555
...UniqBy(
5656
bounties.map((bounty) => {
5757
return {
58-
label: bounty.name,
58+
label: bounty.community,
5959
exact: true,
6060
link: `/bounties/${bounty.slug}`,
6161
};

src/types/bounty.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface Bounty {
2828
submissions?: Submission;
2929
author?: BountyAuthor;
3030
unreviewedSubmissionsCount?: number;
31+
community: string;
3132
}
3233

3334
export interface BountyCourse extends Course {

0 commit comments

Comments
 (0)