Move registration from redux selectors to util
This commit is contained in:
parent
ab909f1f42
commit
6b56dd4ce0
5 changed files with 7 additions and 27 deletions
|
@ -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(),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue