Mark Stacey
1f45798707
Override `ownProps` with state props in `SignatureRequest` ( #6911 )
...
The `accounts` prop of `SignatureRequest` was throwing a PropType
warning because `accounts` was an object instead of an array. It looks
like when the `mergeProps` function was added in #6340 , the ownProps
were accidentally set to override the state props.
The now ignored props have been removed from the parent `ConfirmTxScreen`
component as well. `conversionRate` was identical to the one retrieved
in `SignatureRequest`, and `selectedAddress` differed only in the
fallback behaviour when `state.metamask.selectedAddress` does not exist;
it will now default to the first account instead (as was the original
behavior, prior to #6340 ).
5 years ago
Chi Kei Chan
31175625b4
Folder restructure ( #6304 )
...
* Remove ui/app/keychains/
* Remove ui/app/img/ (unused images)
* Move conversion-util to helpers/utils/
* Move token-util to helpers/utils/
* Move /helpers/*.js inside /helpers/utils/
* Move util tests inside /helpers/utils/
* Renameand move confirm-transaction/util.js to helpers/utils/
* Move higher-order-components to helpers/higher-order-components/
* Move infura-conversion.json to helpers/constants/
* Move all utility functions to helpers/utils/
* Move pages directory to top-level
* Move all constants to helpers/constants/
* Move metametrics inside helpers/
* Move app and root inside pages/
* Move routes inside helpers/
* Re-organize ducks/
* Move reducers to ducks/
* Move selectors inside selectors/
* Move test out of test folder
* Move action, reducer, store inside store/
* Move ui components inside ui/
* Move UI components inside ui/
* Move connected components inside components/app/
* Move i18n-helper inside helpers/
* Fix unit tests
* Fix unit test
* Move pages components
* Rename routes component
* Move reducers to ducks/index
* Fix bad path in unit test
6 years ago
Dan J Miller
4c24555545
Save recent network balances in local storage ( #5843 )
...
* Use selector for state.metamask.accounts in all cases.
* Default to cached balance when selecting metamask accounts
* Adds the cached-balances controller
* Documentation and small codes fixes for #5843
Co-Authored-By: danjm <danjm.com@gmail.com>
6 years ago
Alexander Tseung
5a6c333506
Switch existing modals from using Notification to Modal. Remove Notification component. Add CancelTransaction modal
6 years ago
Alexander Tseung
e9a8c24cc4
Remove unused confirm transaction files
6 years ago
Alexander Tseung
e89549846f
Refactor data flow, signature request routing
6 years ago
Alexander Tseung
41e38fe553
Add notification for dropped retry transactions ( #4363 )
7 years ago
Dan
6bc8cc819a
Merge branch 'develop' into i3725-refactor-send-component-
7 years ago
Alexander Tseung
ffda954add
Fix styling of the app spinner
7 years ago
bitpshr
7129d7c0f3
Require loglevel singleton in each module that uses it
7 years ago
Alexander Tseung
bf38aa6f1d
Fix transaction confirmations
7 years ago
Alexander Tseung
516c1869b0
Fix lint errors
7 years ago
Alexander Tseung
bdc4a6964a
Fix merge conflicts. Refactor renderPrimary into Home component
7 years ago
Dan
0a711f0de0
Removes t from props via metamask-connect and instead places it on context via a provider.
7 years ago
Dan
3830f49ac5
Take user home if an unapproved tx is dropped while they are viewing.
7 years ago
Dan
5fe0be722b
Handle i18n with redux.
7 years ago
Dan
f38675c9ac
Checks if there is currently a send in progress before redirecting to default in conf-tx
7 years ago
frankiebee
8bb57f33b1
add a `x` close button to gas calc loding screen on conf-tx
7 years ago
frankiebee
d5c311b13e
add a loading spinner to conf-tx view
7 years ago
Dan
5fe3c5aae6
Lint fixes.
7 years ago
Dan
bf4043c59b
Adds updateTransaction to background and used it to update after editing in send-v2.
7 years ago
Alexander Tseung
5d1187c37b
Add route for signature request
7 years ago
Alexander Tseung
e226b10a89
Add react-router to allow use of the browser back button
7 years ago
Dan
56e9f98bd0
More lint fixes
7 years ago
Dan
5a94775b3f
Lint fixes for NewUI-flat.
7 years ago
Dan
ddf11011c9
Signature request fixes.
7 years ago
Dan
78836b0ead
Signature Request
7 years ago
Alexander Tseung
5a93ec0252
Fix loading animation not showing on network change
7 years ago
Sergey Ukustov
82d1f39198
Respect code style
7 years ago
Sergey Ukustov
c2b8dada91
Add eth_signTypedData handler
7 years ago
Dan
5c86194c0a
Show loading on conf-tx until the pending tx is available.
7 years ago
Dan Finlay
a01921758b
Add computed balance to account detail view
7 years ago
Dan Finlay
0ba6493175
Use computed balance for tx confirmation
7 years ago
Kevin Serrano
27ba7f6ed3
Show reject all only when tx count is > 1
7 years ago
Kevin Serrano
41e9904d9b
Convert icon to button.
7 years ago
Dan
7d6ad48f15
Touch up transaction list item styles, remove main-content scroll bars, align buttons with main-content..
7 years ago
Dan
e7b3ef0708
Lint fixes
7 years ago
DavidNinja
399c51c048
cancel all txs
7 years ago
sdtsui
65327dd11f
Cleanup unnecessary pending tx-switching logic
7 years ago
Dan Finlay
0ea6749dbc
Lots of flex rearrangement on account detail view
...
Includes removal of ReactCssTransitionGroup for a simpler UI refactor.
7 years ago
Dan Finlay
38dccab12e
Fix reference
7 years ago
Dan Finlay
86d367957f
Move responsive ui into its own folder for easier merges
7 years ago
Dan Finlay
e285f2cae9
Get duplicate UI template working
8 years ago
Dan Finlay
5eb3d5d485
Make folder for responsive UI
8 years ago
frankiebee
bb6e41963d
Dissallow transactions to be sent to 0x0000000000000000000000000000000000000000
8 years ago
Kevin Serrano
2b7d842498
Update gasblocklimit params with every block.
8 years ago
Dan Finlay
31c7daee73
Fix bug where edited gas parameters did not take effect
...
Fixes #1407
8 years ago
Dan Finlay
b4e6ea9db7
Fix fiat rendering
...
Fixes #1439 .
When reorganizing fiat-value component to not use global state, had missed its necessary `currentCurrency` parameter.
This now passes it in wherever it's used.
8 years ago
Dan Finlay
19db11856b
Remove redux dependency from eth-balance and its dependent tree
...
For better unit testability of the conf-tx view.
8 years ago
Thomas Huang
6bdb4c8728
Fix linting warnings
8 years ago