Make clicking on the account and status column headers scroll to top

This commit is contained in:
Thibaut Girka
2019-03-08 20:34:31 +01:00
committed by ThibG
parent 45e4c90a23
commit 4849eb8e7f
6 changed files with 53 additions and 10 deletions

View File

@ -11,16 +11,18 @@ export default @injectIntl
class ProfileColumnHeader extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
intl: PropTypes.object.isRequired,
};
render() {
const { intl } = this.props;
const { onClick, intl } = this.props;
return (
<ColumnHeader
icon='user-circle'
title={intl.formatMessage(messages.profile)}
onClick={onClick}
showBackButton
/>
);