Added back EditProfileModal to all edit profile action buttons

• Added:
- back EditProfileModal to all edit profile action buttons
- AccountActionButton, UserPanel, ProfileHeader
This commit is contained in:
mgabdev
2020-07-17 15:25:05 -05:00
parent 1e55e2e920
commit 10a410be53
4 changed files with 201 additions and 54 deletions

View File

@@ -62,6 +62,10 @@ class UserPanel extends ImmutablePureComponent {
this.setState({ hovering: false })
}
handleOnEditProfile = () => {
this.props.onOpenEditProfile()
}
render() {
const {
account,
@@ -98,7 +102,7 @@ class UserPanel extends ImmutablePureComponent {
backgroundColor='secondary'
radiusSmall
className={buttonClasses}
href='/settings/profile'
onClick={this.handleOnEditProfile}
>
{intl.formatMessage(messages.edit_profile)}
</Button>