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,6 +2,6 @@
import { connect } from "react-redux";
import { withRouter } from "react-router-dom"
export default (mapState) => {
export const withRoute = (mapState) => {
return () => withRouter ;
};

View File

@@ -29,4 +29,4 @@ const mapDispatchToProps = (dispatch, props) => {
}
}
export default connect(null, mapDispatchToProps)
export const withRouteActions = connect(null, mapDispatchToProps);