rename UserDetailsDialog isEnlargeImageShown-> isEnlargedImageShown

pull/681/head
Audric Ackermann 5 years ago
parent a30d772c64
commit 6d662f6b05

@ -18,7 +18,7 @@ interface Props {
} }
interface State { interface State {
isEnlargeImageShown: boolean; isEnlargedImageShown: boolean;
} }
export class UserDetailsDialog extends React.Component<Props, State> { export class UserDetailsDialog extends React.Component<Props, State> {
@ -32,7 +32,7 @@ export class UserDetailsDialog extends React.Component<Props, State> {
this.onClickStartConversation = this.onClickStartConversation.bind(this); this.onClickStartConversation = this.onClickStartConversation.bind(this);
window.addEventListener('keyup', this.onKeyUp); window.addEventListener('keyup', this.onKeyUp);
this.modalRef = React.createRef(); this.modalRef = React.createRef();
this.state = { isEnlargeImageShown: false }; this.state = { isEnlargedImageShown: false };
} }
public componentWillMount() { public componentWillMount() {
@ -79,7 +79,7 @@ export class UserDetailsDialog extends React.Component<Props, State> {
private renderAvatar() { private renderAvatar() {
const avatarPath = this.props.avatarPath; const avatarPath = this.props.avatarPath;
const color = this.props.avatarColor; const color = this.props.avatarColor;
const size = this.state.isEnlargeImageShown ? 300 : 80; const size = this.state.isEnlargedImageShown ? 300 : 80;
return ( return (
<Avatar <Avatar
@ -98,7 +98,7 @@ export class UserDetailsDialog extends React.Component<Props, State> {
} }
private readonly handleShowEnlargedDialog = () => { private readonly handleShowEnlargedDialog = () => {
this.setState({ isEnlargeImageShown: !this.state.isEnlargeImageShown }); this.setState({ isEnlargedImageShown: !this.state.isEnlargedImageShown });
}; };
private onKeyUp(event: any) { private onKeyUp(event: any) {

Loading…
Cancel
Save