import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; import { Input, Captcha } from 'components/ui/form'; import { getLogin } from 'components/auth/reducer'; import { PanelIcon } from 'components/ui/Panel'; import BaseAuthBody from 'components/auth/BaseAuthBody'; import styles from './forgotPassword.scss'; import messages from './ForgotPassword.intl.json'; export default class ForgotPasswordBody extends BaseAuthBody { static displayName = 'ForgotPasswordBody'; static panelId = 'forgotPassword'; static hasGoBack = true; state = { isLoginEdit: !this.getLogin() }; autoFocusField = this.state.isLoginEdit ? 'login' : null; render() { const login = this.getLogin(); const isLoginEditShown = this.state.isLoginEdit; return (