mirror of
https://github.com/desktop/desktop
synced 2024-10-30 17:25:09 +00:00
Merge pull request #16111 from desktop/Avatar-only-a-button-when-it-needs-to-be
Avatar only a button when it needs to be
This commit is contained in:
commit
53598d3f1d
1 changed files with 10 additions and 3 deletions
|
@ -71,10 +71,17 @@ export class CommitMessageAvatar extends React.Component<
|
|||
public render() {
|
||||
return (
|
||||
<div className="commit-message-avatar-component">
|
||||
<Button className="avatar-button" onClick={this.onAvatarClick}>
|
||||
{this.props.warningBadgeVisible && this.renderWarningBadge()}
|
||||
{this.props.warningBadgeVisible && (
|
||||
<Button className="avatar-button" onClick={this.onAvatarClick}>
|
||||
{this.renderWarningBadge()}
|
||||
<Avatar user={this.props.user} title={this.props.title} />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{!this.props.warningBadgeVisible && (
|
||||
<Avatar user={this.props.user} title={this.props.title} />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{this.state.isPopoverOpen && this.renderPopover()}
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue