Updated ConversationHeader renderAvatar callback
This commit is contained in:
parent
092936b69d
commit
e13e4368a7
1 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
|
|||
return null;
|
||||
}
|
||||
|
||||
private renderAvatar(): ReactNode {
|
||||
private renderAvatar(onClickFallback: undefined | (() => void)): ReactNode {
|
||||
const {
|
||||
acceptedMessageRequest,
|
||||
avatarPath,
|
||||
|
@ -242,7 +242,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
|
|||
storyViewMode: StoryViewModeType.User,
|
||||
});
|
||||
}
|
||||
: undefined
|
||||
: onClickFallback
|
||||
}
|
||||
phoneNumber={phoneNumber}
|
||||
profileName={profileName}
|
||||
|
@ -704,7 +704,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
|
|||
throw missingCaseError(type);
|
||||
}
|
||||
|
||||
const avatar = this.renderAvatar();
|
||||
const avatar = this.renderAvatar(onClick);
|
||||
const contents = (
|
||||
<div className="module-ConversationHeader__header__info">
|
||||
{this.renderHeaderInfoTitle()}
|
||||
|
|
Loading…
Add table
Reference in a new issue