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

View File

@@ -11,4 +11,4 @@ const mapDispatchToProps = (dispatch) => ({
// requestInviteMetaByToken: (token) => dispatch(inviteMetaByToken({ token })),
});
export default connect(null, mapDispatchToProps);
export const withAuthenticationActions = connect(null, mapDispatchToProps);