diff options
author | Mélanie Chauvel (ariasuni) <perso@hack-libre.org> | 2019-02-27 13:36:40 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-03-01 14:01:51 +0100 |
commit | 282ac61500a6246593e593ab515dec5807a336d4 (patch) | |
tree | 0640349a951a13b12bf657c1ca386667d5cd9272 /app/javascript/flavours/glitch/features/account | |
parent | 12a0dd71beae4f8988adfcaae5455a6cb528d198 (diff) |
[Glitch] Make the column header of profile view look like the others, too
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/account')
-rw-r--r-- | app/javascript/flavours/glitch/features/account/components/profile_column_header.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/profile_column_header.js b/app/javascript/flavours/glitch/features/account/components/profile_column_header.js new file mode 100644 index 000000000..32776be75 --- /dev/null +++ b/app/javascript/flavours/glitch/features/account/components/profile_column_header.js @@ -0,0 +1,29 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import ColumnHeader from '../../../components/column_header'; +import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; + +const messages = defineMessages({ + profile: { id: 'column_header.profile', defaultMessage: 'Profile' }, +}); + +export default @injectIntl +class ProfileColumnHeader extends React.PureComponent { + + static propTypes = { + intl: PropTypes.object.isRequired, + }; + + render() { + const { intl } = this.props; + + return ( + <ColumnHeader + icon='user-circle' + title={intl.formatMessage(messages.profile)} + showBackButton + > + </ColumnHeader> + ) + } +} |