Split the AccountSwitcher component on 2 independent implementations

Improve auth's ChooseAccount visual behavior
Rework the ComponentLoader component. Make it more stylable
This commit is contained in:
ErickSkrauch
2020-10-23 01:23:59 +03:00
parent c58816212d
commit 8075192472
33 changed files with 711 additions and 696 deletions

View File

@@ -7,7 +7,7 @@ import * as authentication from 'app/services/api/authentication';
import { authenticate, revoke, logoutAll, logoutStrangers } from 'app/components/accounts/actions';
import { add, activate, remove, reset } from 'app/components/accounts/actions/pure-actions';
import { updateUser, setUser } from 'app/components/user/actions';
import { setLogin, setAccountSwitcher } from 'app/components/auth/actions';
import { setLogin } from 'app/components/auth/actions';
import { Dispatch, State as RootState } from 'app/types';
import { Account } from './reducer';
@@ -182,11 +182,6 @@ describe('components/accounts/actions', () => {
},
});
});
it('should dispatch setAccountSwitcher', () =>
authenticate(account)(dispatch, getState, undefined).then(() =>
expect(dispatch, 'to have a call satisfying', [setAccountSwitcher(false)]),
));
});
describe('when one account available', () => {