|
|
@ -63,6 +63,14 @@ class Header extends ImmutablePureComponent {
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
action_buttons = (
|
|
|
|
|
|
|
|
<div className='account__header__account-note__buttons'>
|
|
|
|
|
|
|
|
<button className='text-btn' tabIndex='0' onClick={this.props.onEditAccountNote} disabled={isSubmitting}>
|
|
|
|
|
|
|
|
<Icon id='pencil' size={15} /> <FormattedMessage id='account_note.edit' defaultMessage='Edit' />
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let note_container = null;
|
|
|
|
let note_container = null;
|
|
|
@ -85,17 +93,10 @@ class Header extends ImmutablePureComponent {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className='account__header__account-note'>
|
|
|
|
<div className='account__header__account-note'>
|
|
|
|
<div className='account__header__account-note__header'>
|
|
|
|
<div className='account__header__account-note__header'>
|
|
|
|
<strong><FormattedMessage id='account.account_note_header' defaultMessage='Your note for @{name}' values={{ name: account.get('username') }} /></strong>
|
|
|
|
<strong><FormattedMessage id='account.account_note_header' defaultMessage='Note' /></strong>
|
|
|
|
{!isEditing && (
|
|
|
|
{action_buttons}
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<button className='text-btn' tabIndex='0' onClick={this.props.onEditAccountNote} disabled={isSubmitting}>
|
|
|
|
|
|
|
|
<Icon id='pencil' size={15} /> <FormattedMessage id='account_note.edit' defaultMessage='Edit' />
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{note_container}
|
|
|
|
{note_container}
|
|
|
|
{action_buttons}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|