mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getExpensesCurrentPageFactory } from '@/store/users/users.selectors';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withUsers = (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
usersList: getExpensesCurrentPageFactory(state, props),
|
||||
|
||||
@@ -19,4 +19,4 @@ export const mapDispatchToProps = (dispatch) => ({
|
||||
|
||||
});
|
||||
|
||||
export default connect(null, mapDispatchToProps);
|
||||
export const withUsersActions = connect(null, mapDispatchToProps);
|
||||
|
||||
Reference in New Issue
Block a user