Move registration from redux selectors to util

This commit is contained in:
Josh Perez 2020-02-21 15:08:21 -08:00 committed by GitHub
parent ab909f1f42
commit 6b56dd4ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 27 deletions

View file

@ -4,14 +4,14 @@ import { NetworkStatus } from '../../components/NetworkStatus';
import { StateType } from '../reducer';
import { getIntl } from '../selectors/user';
import { hasNetworkDialog } from '../selectors/network';
import { isDone } from '../selectors/registration';
import { isDone } from '../../util/registration';
const mapStateToProps = (state: StateType) => {
return {
...state.network,
hasNetworkDialog: hasNetworkDialog(state),
i18n: getIntl(state),
isRegistrationDone: isDone(state),
isRegistrationDone: isDone(),
};
};