making avatar cropping work

This commit is contained in:
or-else
2021-07-10 19:11:21 -07:00
parent 0195aae6ff
commit f2cd1ba0f2
9 changed files with 45 additions and 10 deletions
+1 -1
View File
@@ -68,7 +68,6 @@ export default class AccGeneralView extends React.Component {
handleImageChanged(img) {
this.setState({avatar: img});
this.props.onBasicNavigate('crop');
// this.props.onUpdateAccount(undefined, theCard(null, img || Tinode.DEL_CHAR));
}
@@ -151,6 +150,7 @@ export default class AccGeneralView extends React.Component {
avatar={this.state.avatar}
uid={this.props.myUserId}
title={this.state.fullName}
onImageReceived={this.props.onImageReceived}
onImageChanged={this.handleImageChanged}
onError={this.props.onError} />
</div>