import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; export default @injectIntl class MissingDescriptionModal extends React.PureComponent { static propTypes = { onClose: PropTypes.func, onContinue: PropTypes.func.isRequired, intl: PropTypes.object.isRequired, }; componentDidMount() { this.button.focus(); } handleContinue = () => { this.props.onClose(); this.props.onContinue(); } handleCancel = () => { this.props.onClose(); } setRef = (c) => { this.button = c; } render() { return (