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
+2 -1
View File
@@ -184,7 +184,7 @@ class SidepanelView extends React.Component {
onCredAdd={this.props.onCredAdd}
onCredDelete={this.props.onCredDelete}
onCredConfirm={this.props.onCredConfirm}
onBasicNavigate={this.props.onBasicNavigate}
onImageReceived={this.props.onImageReceived}
onError={this.props.onError} /> :
view === 'notif' ?
@@ -248,6 +248,7 @@ class SidepanelView extends React.Component {
view === 'crop' ?
<AvatarCropView
avatar={this.props.newAvatar}
onSubmit={this.props.onAvatarCropped}
onCancel={this.props.onCancel} /> :