ryanml
60f6fd0008
Fixing broken JSON import help link ( #7910 )
5 years ago
Whymarrh Whitby
b9757f5563
Convert account import components to ES6 classes ( #7791 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
5 years ago
Whymarrh Whitby
92971d3c87
Migrate codebase to use ESM ( #7730 )
...
* Update eslint-plugin-import version
* Convert JS files to use ESM
* Update ESLint rules to check imports
* Fix test:unit:global command env
* Cleanup mock-dev script
5 years ago
Mark Stacey
49a525b9f8
Add `react/no-unused-prop-types` ESLint rule ( #7655 )
...
* Add `react/no-unused-prop-types` rule
All detected unused prop types have been removed. I have attempted to
ensure these props are no longer passed in either.
* Update handling of props to avoid false positive lint errors
These cases were detected by `react/no-unused-prop-types` as being
unused props, even though they were used. These minor adjustments
prevent them from being flagged as errors.
* Update unit tests
Many of these tests were just checking that specific props were passed
from containers or to a child component. These were deleted, as I can't
imagine how they'd be useful.
* Disable `react/no-unused-prop-types` in `componentWillReceiveProps
The rule `react/no-unused-prop-types` doesn't seem to be detecting
props used within `UNSAFE_componentWillReceiveProps`. The two cases
have been disabled temporarily until we can replace these unsafe
lifecycle functions.
5 years ago
Whymarrh Whitby
b8e3957542
Remove unneeded store connections ( #7625 )
5 years ago
Whymarrh Whitby
bb4c4189fb
eslint: Enable more react/jsx-* rules ( #7592 )
5 years ago
Whymarrh Whitby
718f0010a4
Enable react/no-unused-state rule for ESLint ( #7609 )
...
* eslint: Enable react/no-unused-state rule
* Fix unused state issues
* Remove now unused validFileImport localized message
5 years ago
Whymarrh Whitby
2e69f3233e
eslint: Enable more react/jsx-* rules ( #7592 )
5 years ago
Whymarrh Whitby
2c33ad3eb4
Enable react/no-unused-state rule for ESLint ( #7609 )
...
* eslint: Enable react/no-unused-state rule
* Fix unused state issues
* Remove now unused validFileImport localized message
5 years ago
Whymarrh Whitby
7d2b5b26a5
Delete unused SeedImportSubview component ( #7530 )
...
* Delete unused SeedImportSubview component
* Remove 2 unused messages
5 years ago
Whymarrh Whitby
9841845b30
Convert PrivateKeyImportView component to use JSX ( #7522 )
5 years ago
Whymarrh Whitby
1454426e3e
Convert AccountImportSubview to use JSX ( #7520 )
5 years ago
Whymarrh Whitby
d7fabae847
Convert JsonImportSubview component to use JSX ( #7521 )
5 years ago
Kirill Goncharov
a47370057e
Fix styles on 'import account' page, update help link ( #6700 )
...
* Fix styles on 'import account' page, update help link
* Update changelog
6 years ago
Whymarrh Whitby
094e4cf555
Check for unused function arguments ( #6583 )
...
* eslint: Check for unused function arguments
* eslint: Ignore unused '_' in argument list
Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly
* Remove and rename unused arguments
6 years ago
Chi Kei Chan
92c03bdff2
Update buttons & colors to match design system ( #6446 )
...
* Refactoring button styles
* renaming buttons
* Add Link and Button styles
* Update new btn styles and storybook
* Fix tests
* Change font weight; Update storybook
* Fix linter
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