2017-01-27 11:58:15 +05:30
|
|
|
import React from 'react';
|
2016-05-26 20:21:17 +05:30
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2017-05-26 00:41:57 +05:30
|
|
|
import { Link } from 'react-router-dom';
|
2016-05-26 20:21:17 +05:30
|
|
|
|
|
|
|
import FormComponent from 'components/ui/form/FormComponent';
|
|
|
|
|
|
|
|
import styles from 'components/profile/profileForm.scss';
|
|
|
|
|
|
|
|
import messages from './ProfileForm.intl.json';
|
|
|
|
|
|
|
|
export class BackButton extends FormComponent {
|
|
|
|
static displayName = 'BackButton';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Link className={styles.backButton} to="/" title={this.formatMessage(messages.back)}>
|
|
|
|
<span className={styles.backIcon} />
|
|
|
|
<span className={styles.backText}>
|
|
|
|
<Message {...messages.back} />
|
|
|
|
</span>
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|