wip: out of band avatars

This commit is contained in:
or-else
2021-07-01 14:19:28 -07:00
parent c5c08aa4f9
commit e30868c072
15 changed files with 116 additions and 42 deletions
+1
View File
@@ -146,6 +146,7 @@ export default class AccGeneralView extends React.Component {
}</FormattedMessage></div>
</div>
<AvatarUpload
tinode={this.props.tinode}
avatar={this.state.avatar}
uid={this.props.myUserId}
title={this.state.fullName}
+1
View File
@@ -92,6 +92,7 @@ export default class CreateAccountView extends React.PureComponent {
}</FormattedMessage>
</div>
<AvatarUpload
tinode={this.props.tinode}
onImageChanged={this.handleImageChanged}
onError={this.props.onError} />
</div>
+1
View File
@@ -36,6 +36,7 @@ export default class EditAccountView extends React.Component {
<BadgeList trustedBadges={this.props.trustedBadges} />
</div>
<AvatarUpload
tinode={this.props.tinode}
avatar={this.state.avatar}
readOnly={!this.state.owner}
uid={this.props.myUserId}
+1
View File
@@ -600,6 +600,7 @@ class InfoView extends React.Component {
<BadgeList trustedBadges={this.state.trustedBadges} />
</div>
<AvatarUpload
tinode={this.props.tinode}
avatar={this.state.avatar}
readOnly={!this.state.owner}
uid={this.props.topic}
+1
View File
@@ -150,6 +150,7 @@ class SidepanelView extends React.Component {
view === 'register' ?
<CreateAccountView
tinode={this.props.tinode}
onCreateAccount={this.props.onCreateAccount}
onCancel={this.props.onCancel}
onError={this.props.onError} /> :