-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tx history update #518
tx history update #518
Conversation
3d13de6
to
3e62ecf
Compare
solution: add ui for confirmations + fix bug with tx view updating
3e62ecf
to
3b52ccd
Compare
Codecov Report
@@ Coverage Diff @@
## master #518 +/- ##
==========================================
- Coverage 19.13% 19.11% -0.02%
==========================================
Files 159 159
Lines 3162 3180 +18
Branches 385 390 +5
==========================================
+ Hits 605 608 +3
- Misses 2306 2317 +11
- Partials 251 255 +4
Continue to review full report at Codecov.
|
@@ -22,9 +22,11 @@ export default connect( | |||
|
|||
return { | |||
showFiat: launcher.selectors.getChainName(state).toLowerCase() === 'mainnet', | |||
network: state.network.toJS(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will cause re-rendering component because toJS() produces new object every time. Do we need whole network structure or currentBlockNumber is enough here ?
@@ -83,4 +105,8 @@ TxView.propTypes = { | |||
fromAccount: PropTypes.object.isRequired, | |||
openTx: PropTypes.func.isRequired, | |||
refreshTx: PropTypes.func.isRequired, | |||
currentBlock: PropTypes.string.isRequired, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't find usage of currentBlock property, instead we have network
property not declared here
// TODO: move tx status to own component | ||
// TODO: timestamp | ||
let txStatus = null; | ||
if (tx.get('blockNumber')) { | ||
txStatus = <span style={{color: 'limegreen'}} onClick={ openTx }>Success</span>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use this color #47B04B
for success
fixes #486
fixes #500
fixes #518