1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/test
Mark Stacey 53feb20803
Alert user upon switching to unconnected account (#8312)
An alert is now shown when the user switches from an account that is
connected to the active tab to an account that is not connected. The
alert prompts the user to dismiss the alert or connect the account
they're switching to.

The "loading" state is handled by disabling the buttons, and the error
state is handled by displaying a generic error message and disabling
the connect button.

The new reducer for this alert has been created with `createSlice` from
the Redux Toolkit. This utility is recommended by the Redux team, and
represents a new style of writing reducers that I hope we will use more
in the future (or at least something similar). `createSlice` constructs
a reducer, actions, and action creators automatically. The reducer is
constructed using their `createReducer` helper, which uses Immer to
allow directly mutating the state in the reducer but exposing these
changes as immutable.
2020-04-29 14:10:51 -03:00
..
data Use default mock store in action tests (#8437) 2020-04-28 09:49:43 -03:00
e2e Add new inpage provider package (#8442) 2020-04-28 17:14:51 -07:00
integration Prevent accidental use of globals (#8340) 2020-04-15 14:23:27 -03:00
lib Export individual fns from tx-state-history-helpers (#8370) 2020-04-20 13:00:51 -02:30
stub Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
unit Alert user upon switching to unconnected account (#8312) 2020-04-29 14:10:51 -03:00
unit-global Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
web3 Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
base.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
env.js Remove cross-env (#7950) 2020-01-30 14:11:26 -03:30
flat.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
helper.js Prevent accidental use of globals (#8340) 2020-04-15 14:23:27 -03:00
setup.js Remove obs-store babel register handling (#8413) 2020-04-27 07:54:42 -07:00