import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; import { Input } from 'app/components/ui/form'; import BaseAuthBody from 'app/components/auth/BaseAuthBody'; import styles from './activation.scss'; import messages from './Activation.intl.json'; export default class ActivationBody extends BaseAuthBody { static displayName = 'ActivationBody'; static panelId = 'activation'; static propTypes = { match: PropTypes.shape({ params: PropTypes.shape({ key: PropTypes.string, }), }), }; autoFocusField = this.props.match.params && this.props.match.params.key ? null : 'key'; render() { const { key } = this.props.match.params; const { email } = this.context.user; return (