mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 09:09:48 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { isAuthenticated } from '@/store/authentication/authentication.reducer';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withAuthentication = (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
isAuthorized: isAuthenticated(state),
|
||||
|
||||
@@ -11,4 +11,4 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
// requestInviteMetaByToken: (token) => dispatch(inviteMetaByToken({ token })),
|
||||
});
|
||||
|
||||
export default connect(null, mapDispatchToProps);
|
||||
export const withAuthenticationActions = connect(null, mapDispatchToProps);
|
||||
Reference in New Issue
Block a user