-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notification for dropped retry transactions
- Loading branch information
Showing
16 changed files
with
317 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
@import './info-box/index'; | ||
|
||
@import './pages/index'; | ||
|
||
@import './modals/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './transaction-confirmed/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import TransactionConfirmed from './transaction-confirmed.container' | ||
module.exports = TransactionConfirmed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.transaction-confirmed { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 32px; | ||
|
||
&__title { | ||
font-size: 2rem; | ||
padding: 16px 0; | ||
} | ||
|
||
&__description { | ||
text-align: center; | ||
font-size: .875rem; | ||
line-height: 1.5rem; | ||
} | ||
|
||
@media screen and (max-width: 575px) { | ||
justify-content: center; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
ui/app/components/modals/transaction-confirmed/transaction-confirmed.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
20 changes: 20 additions & 0 deletions
20
ui/app/components/modals/transaction-confirmed/transaction-confirmed.container.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { connect } from 'react-redux' | ||
import TransactionConfirmed from './transaction-confirmed.component' | ||
|
||
const { hideModal } = require('../../../actions') | ||
|
||
const mapStateToProps = state => { | ||
const { appState: { modal: { modalState: { props } } } } = state | ||
const { onHide } = props | ||
return { | ||
onHide, | ||
} | ||
} | ||
|
||
const mapDispatchToProps = dispatch => { | ||
return { | ||
hideModal: () => dispatch(hideModal()), | ||
} | ||
} | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(TransactionConfirmed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.