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 { getCurrentOrganizationFactory } from '@/store/authentication/authentication.selectors';
export default (mapState) => {
export const withCurrentOrganization = (mapState) => {
const getCurrentOrganization = getCurrentOrganizationFactory();
const mapStateToProps = (state, props) => {

View File

@@ -9,7 +9,7 @@ import {
isOrganizationBuildRunningFactory
} from '@/store/organizations/organizations.selectors';
export default (mapState) => {
export const withOrganization = (mapState) => {
const getOrganizationById = getOrganizationByIdFactory();
const isOrganizationReady = isOrganizationReadyFactory();
const isOrganizationBuilt = isOrganizationBuiltFactory();

View File

@@ -9,4 +9,4 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(setOrganizationSetupCompleted(congrats)),
});
export default connect(null, mapDispatchToProps);
export const withOrganizationActions = connect(null, mapDispatchToProps);