wip: hooking up avatar cropper

This commit is contained in:
or-else
2021-07-10 17:17:48 -07:00
parent 6b8c3949a0
commit 0195aae6ff
7 changed files with 44 additions and 14 deletions
+2 -1
View File
@@ -68,7 +68,8 @@ export default class AccGeneralView extends React.Component {
handleImageChanged(img) { handleImageChanged(img) {
this.setState({avatar: img}); this.setState({avatar: img});
this.props.onUpdateAccount(undefined, theCard(null, img || Tinode.DEL_CHAR)); this.props.onBasicNavigate('crop');
// this.props.onUpdateAccount(undefined, theCard(null, img || Tinode.DEL_CHAR));
} }
handleCredChange(e) { handleCredChange(e) {
+1 -1
View File
@@ -821,7 +821,7 @@ class AccGeneralView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
this.setState({ this.setState({
avatar: img avatar: img
}); });
this.props.onUpdateAccount(undefined, (0,_lib_utils_js__WEBPACK_IMPORTED_MODULE_8__.theCard)(null, img || (tinode_sdk__WEBPACK_IMPORTED_MODULE_2___default().DEL_CHAR))); this.props.onBasicNavigate('crop');
} }
handleCredChange(e) { handleCredChange(e) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+37 -8
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long