Skip to content

Commit

Permalink
Merge pull request #11772 from nanaya/discussion-user-card
Browse files Browse the repository at this point in the history
Show user card on discussion page user link
  • Loading branch information
notbakaneko authored Jan 14, 2025
2 parents 69d48c8 + 9f2ade3 commit ecfa30b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions resources/js/beatmap-discussions/user-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import UserAvatar from 'components/user-avatar';
import UserGroupBadge from 'components/user-group-badge';
import UserLink from 'components/user-link';
import UserGroupJson from 'interfaces/user-group-json';
import UserJson from 'interfaces/user-json';
import { route } from 'laroute';
Expand Down Expand Up @@ -32,12 +33,12 @@ export class UserCard extends React.PureComponent<Props> {
<UserAvatar modifiers='full-rounded' user={this.props.user} />
</span>
) : (
<a
<UserLink
className={`${bn}__user-link`}
href={route('users.show', { user: this.props.user.id })}
user={this.props.user}
>
<UserAvatar modifiers='full-rounded' user={this.props.user} />
</a>
</UserLink>
)}
</div>

Expand All @@ -49,12 +50,12 @@ export class UserCard extends React.PureComponent<Props> {
</span>

) : (
<a
<UserLink
className={`${bn}__user-link`}
href={route('users.show', { user: this.props.user.id })}
user={this.props.user}
>
{this.renderUsername()}
</a>
</UserLink>
)}
{!this.props.user.is_bot && !this.props.user.is_deleted && (
<a
Expand Down

0 comments on commit ecfa30b

Please sign in to comment.