mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
import { connect } from "react-redux";
|
||||
import { withRouter } from "react-router-dom"
|
||||
|
||||
export default (mapState) => {
|
||||
export const withRoute = (mapState) => {
|
||||
return () => withRouter ;
|
||||
};
|
||||
@@ -29,4 +29,4 @@ const mapDispatchToProps = (dispatch, props) => {
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(null, mapDispatchToProps)
|
||||
export const withRouteActions = connect(null, mapDispatchToProps);
|
||||
Reference in New Issue
Block a user