2018-05-31 01:17:40 +02:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2018-09-17 19:34:29 +02:00
|
|
|
import Modal, { ModalContent } from '../../modal'
|
2018-05-31 01:17:40 +02:00
|
|
|
|
|
|
|
const TransactionConfirmed = (props, context) => {
|
|
|
|
const { t } = context
|
2018-09-17 19:34:29 +02:00
|
|
|
const { hideModal } = props
|
2018-05-31 01:17:40 +02:00
|
|
|
|
|
|
|
return (
|
2018-09-17 19:34:29 +02:00
|
|
|
<Modal
|
|
|
|
onSubmit={() => hideModal()}
|
|
|
|
submitText={t('ok')}
|
|
|
|
>
|
|
|
|
<ModalContent
|
|
|
|
title={t('uiWelcome')}
|
|
|
|
description={t('uiWelcomeMessage')}
|
|
|
|
/>
|
|
|
|
</Modal>
|
2018-05-31 01:17:40 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
TransactionConfirmed.contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
2018-09-17 19:34:29 +02:00
|
|
|
TransactionConfirmed.propTypes = {
|
|
|
|
hideModal: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
2018-05-31 01:17:40 +02:00
|
|
|
export default TransactionConfirmed
|