aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/transaction-confirmed/transaction-confirmed.component.js
blob: 8d3b288aec26a6fcdf860602d9efc384c82d1f5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Button from '../../button'

class TransactionConfirmed extends Component {
  render () {
    const { t } = this.context

    return (
      <div className="page-container page-container--full-width page-container--full-height">
        <div className="page-container__content transaction-confirmed">
          <img src="images/check-icon.svg" />
          <div className="transaction-confirmed__title">
            { `${t('confirmed')}!` }
          </div>
          <div className="transaction-confirmed__description">
            { t('initialTransactionConfirmed') }
          </div>
        </div>
        <div className="page-container__footer">
          <Button
            type="primary"
            className="page-container__footer-button"
            onClick={() => {
              this.props.hideModal()
              this.props.onHide()
            }}
          >
            { t('ok') }
          </Button>
        </div>
      </div>
    )
  }
}

TransactionConfirmed.propTypes = {
  hideModal: PropTypes.func.isRequired,
  onHide: PropTypes.func.isRequired,
}

TransactionConfirmed.contextTypes = {
  t: PropTypes.func,
}

export default TransactionConfirmed