1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/pages/first-time-flow
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.
2019-12-07 23:10:47 -04:00
..
create-password React 16 upgrade (#7476) 2019-12-06 11:40:06 -04:00
end-of-flow eslint: Enable more react/jsx-* rules (#7592) 2019-12-03 13:05:44 -03:30
first-time-flow-switch Remove unused seedPhrase prop (#6913) 2019-07-25 10:59:40 -03:00
metametrics-opt-in eslint: Enable more react/jsx-* rules (#7592) 2019-12-03 13:05:44 -03:30
seed-phrase Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
select-action Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
welcome Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
first-time-flow.component.js Rename render function props from Route (#7657) 2019-12-06 09:43:50 -04:00
first-time-flow.container.js Show seed phrase challenge in browser (#6961) 2019-08-06 00:54:19 -02:30
first-time-flow.selectors.js Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
index.scss fix width in first time flow button (#7348) 2019-11-04 15:08:17 -04:00
onboarding-initiator-util.js Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00