Fix : Preferences

This commit is contained in:
elforjani3
2020-11-02 10:23:01 +02:00
parent f76abb3f79
commit e36a1dcf50
20 changed files with 853 additions and 549 deletions

View File

@@ -1,7 +1,13 @@
import { connect } from 'react-redux';
export const mapStateToProps = (state, props) => ({
usersList: state.users.list.results,
});
export default (mapState) => {
const mapStateToProps = (state, props) => {
const mapped = {
usersList: state.users.list,
usersLoading: state.users.loading,
};
return mapState ? mapState(mapped, state, props) : mapped;
};
export default connect(mapStateToProps);
return connect(mapStateToProps);
};