refactor: HOCs named imports

This commit is contained in:
Ahmed Bouhuolia
2026-01-01 21:58:42 +02:00
parent 5d872798ff
commit 0f377e19f3
712 changed files with 1367 additions and 1360 deletions

View File

@@ -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),

View File

@@ -19,4 +19,4 @@ export const mapDispatchToProps = (dispatch) => ({
});
export default connect(null, mapDispatchToProps);
export const withUsersActions = connect(null, mapDispatchToProps);