Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
Whymarrh Whitby
b6ccd22d6c
Update ESLint shared config to v3 ( #9274 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Whymarrh Whitby
c1e3c229bc
Fix import/order issues ( #9239 )
...
See [`import/order`](https://eslint.org/docs/rules/import/order ) for more information.
This change enables `import/order` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
a78cf0ef3a
Enable arrow-parens ESLint rule
5 years ago
Whymarrh Whitby
4f3fc95d50
Update ESLint rules for test suite ( #8023 )
...
* Use @metamask/eslint-config@1.1.0
* Use eslint-plugin-mocha@6.2.2
* Mark root ESLint config as root
* Update Mocha ESLint rules with shared ESLint config
5 years ago
Thomas Huang
5d1c9313db
Various component tests and some conditional statements ( #7765 )
...
* Various component tests and some conditional statements
Conditional in account-menu in removeAccount when keyring sometimes is not initially provideed
Conditional on unlock-page when there is no target.getBoundingClientRect on the element.
* Update helpers
* Remove component debugging
* Add default params for render helpers
* Remove stubComponent for old Mascot
Changes in https://github.com/MetaMask/metamask-extension/pull/7893 has prevented the need to stub it out.
Change logout to lock in account-menu test
5 years ago
Mark Stacey
466ece4588
Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" ( #7648 )
...
This reverts commit 1110287fe1
, reversing
changes made to 72eb233ee9
.
5 years ago
Whymarrh Whitby
274a9ecf53
yarn lint --fix
5 years ago
Whymarrh Whitby
bb4c4189fb
eslint: Enable more react/jsx-* rules ( #7592 )
5 years ago
Whymarrh Whitby
2e69f3233e
eslint: Enable more react/jsx-* rules ( #7592 )
5 years ago
Whymarrh Whitby
f1384e7522
Disable unnecessary curly braces in JSX ( #7454 )
5 years ago
Chi Kei Chan
931aaeb700
Add token selection to the send screen ( #6445 )
...
* Move send to pages/
* Fix unit tests
* Finish UI
* Integrate asset dropdown to send actions
* Remove console.log
* Hide asset change during edit
* Enable switch from send token to seand eth
* Enable switching from token to eth when editing
* Fix linter
* Fixing test
* Fix unit tests
* Fix linter
* Fix react warning; remove console.log
* fix flat test
* Add metrics
* Address code review comments
* Consistent spacing between send screen form rows.
* Reduce height of gas buttons on send screen.
* Make send screen gas button height dependent on size of contents.
6 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 Miller
b70886a99b
Fixes for components that break e2e gas customization tests, plus unit test updates.
6 years ago
Dan Miller
5354325fab
Test updates and additions for button integration with send screen.
6 years ago
Alexander Tseung
badebe017f
Adds toggle for primary currency ( #5421 )
...
* Add UnitInput component
* Add CurrencyInput component
* Add UserPreferencedCurrencyInput component
* Add UserPreferencedCurrencyDisplay component
* Add updatePreferences action
* Add styles for CurrencyInput, CurrencyDisplay, and UnitInput
* Update SettingsTab page with Primary Currency toggle
* Refactor currency displays and inputs to use UserPreferenced displays and inputs
* Add TokenInput component
* Add UserPreferencedTokenInput component
* Use TokenInput in the send screen
* Fix unit tests
* Fix e2e and integration tests
* Remove send/CurrencyDisplay component
* Replace diamond unicode character with Eth logo. Fix typos
6 years ago
Dan
b3d78ed8a1
Remove send_ directory, revert to just having send
...
Revert accidentally changed constants.
Require defaults in ens-input, gas-fee-display and confirm screens.
6 years ago
brunobar79
a8f745f9fe
eslint --fix .
6 years ago
tmashuang
fb02e71e22
Remove .only on test
7 years ago
trejgun
778aec8c75
lint
7 years ago
trejgun
c27dfb01bb
refactor gas-fee-display component
...
#4622
7 years ago