Skip to content

Commit ac27f26

Browse files
done with changes suggested by kate .
1 parent f429071 commit ac27f26

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

frontend/src/components/Badges.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@ const Badges = ({ name, cssClass, showTooltip = true }: BadgeProps) => {
2323
prefix: 'fas',
2424
iconName: cssClass.split(' ').pop().replace('fa-', '') as IconName,
2525
})
26-
if (!iconDef) {
27-
return (
28-
<div className="inline-flex items-center">
29-
<Tooltip content={name} isDisabled={!showTooltip}>
30-
<FontAwesomeIconWrapper icon={'fa-question'} className="h-4 w-4" />
31-
</Tooltip>
32-
</div>
33-
)
34-
}
26+
3527
return (
3628
<div className="inline-flex items-center">
3729
<Tooltip content={name} isDisabled={!showTooltip}>
38-
<FontAwesomeIconWrapper icon={cssClass} className="h-4 w-4" />
30+
<FontAwesomeIconWrapper icon={iconDef ? cssClass : 'fa-question'} className="h-4 w-4" />
3931
</Tooltip>
4032
</div>
4133
)

frontend/src/components/UserCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import type { UserCardProps } from 'types/card'
1313

1414
const UserCard = ({
1515
avatar,
16-
button,
1716
badgeCount,
17+
button,
1818
className,
1919
company,
2020
description,

frontend/src/server/queries/userQueries.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const GET_LEADER_DATA = gql`
1212
name
1313
description
1414
cssClass
15-
weight
1615
}
1716
badgeCount
1817
}
@@ -91,7 +90,6 @@ export const GET_USER_DATA = gql`
9190
description
9291
id
9392
name
94-
weight
9593
}
9694
badgeCount
9795
publicRepositoriesCount

0 commit comments

Comments
 (0)