1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app/pages
Mark Stacey 95f198550e
Declare variables before use (#6806)
While working on #6805, I noticed that many variables were being used
before they were declared. Technically this worked fine in practice
because we were using the `transform-es2015-block-scoping` Babel plugin,
which transforms `let` and `const` to `var`, which is hoisted. However,
after removing that Babel transformation, many things broke.

All instances of variables or classes being used before declared have
been fixed.

The `no-use-before-define` eslint rule has been added to catch these
cases going forward. The rule is disabled for function declarations for
the moment, because those are always hoisted. We could disable that too
if we want to, but it's purely stylistic and would require a lot more
changes.
2019-07-05 14:01:34 -03:00
..
add-token Update buttons & colors to match design system (#6446) 2019-04-16 17:05:22 -02:30
confirm-add-suggested-token Ensure future tokens add decimals as numbers while supporting numbers and strings in send-asset-row 2019-04-17 21:26:25 -02:30
confirm-add-token Update buttons & colors to match design system (#6446) 2019-04-16 17:05:22 -02:30
confirm-approve Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-deploy-contract Only pass english function names to functionType metric 2019-04-08 13:31:11 -02:30
confirm-send-ether Only pass english function names to functionType metric 2019-04-08 13:31:11 -02:30
confirm-send-token Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-token-transaction-base Fixes display of confirm screen token decimals by not relying on confirmTransaction state. 2019-06-28 01:51:33 -03:00
confirm-transaction Fixes display of confirm screen token decimals by not relying on confirmTransaction state. 2019-06-28 01:51:33 -03:00
confirm-transaction-base Add simulation failure to tx confirmation when transaction simulationFails 2019-06-25 12:42:35 -07:00
confirm-transaction-switch 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
create-account Fix styles on 'import account' page, update help link (#6700) 2019-06-17 08:37:34 -02:30
first-time-flow Handle invalid strings during seed phrase import (#6743) 2019-06-27 14:44:41 -02:30
home Ensure home screen does not render if there are unapproved txs (#6501) 2019-04-27 06:59:55 -02:30
keychains Fix seed phrase import back button (#6758) 2019-06-27 12:26:25 -03:00
lock Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
mobile-sync Feature: sync with mobile v2 (#6673) 2019-06-12 10:54:45 -04:00
provider-approval Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410) 2019-05-03 13:32:05 -04:00
routes Declare variables before use (#6806) 2019-07-05 14:01:34 -03:00
send Revert "fixed #5524" 2019-06-06 19:20:33 +02:00
settings Added Confirmation Modal for Delete Network (#6776) 2019-07-02 09:43:02 -02:30
unlock-page Open retore-vault route from popup (#6353) 2019-03-26 23:35:29 -07:00
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
index.scss Folder restructure (#6304) 2019-03-21 20:33:30 -02:30