import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Modal from '../../modal'; import { Icon, ICON_NAMES, ICON_SIZES, } from '../../../component-library/icon/deprecated'; import { IconColor } from '../../../../helpers/constants/design-system'; export default class TransactionConfirmed extends PureComponent { static contextTypes = { t: PropTypes.func, }; static propTypes = { onSubmit: PropTypes.func, hideModal: PropTypes.func, }; handleSubmit = () => { const { hideModal, onSubmit } = this.props; hideModal(); if (onSubmit && typeof onSubmit === 'function') { onSubmit(); } }; render() { const { t } = this.context; return (
{`${t('confirmed')}!`}
{t('initialTransactionConfirmed')}
); } }