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

@@ -11,4 +11,4 @@ export const mapDispatchToProps = (dispatch) => ({
closeAlert: (name, payload) => dispatch({ type: t.CLOSE_ALERT, name, payload }),
});
export default connect(null, mapDispatchToProps);
export const withAlertActions = connect(null, mapDispatchToProps);

View File

@@ -5,7 +5,7 @@ import {
getAlertPayloadFactory,
} from '@/store/dashboard/dashboard.selectors';
export default (mapState) => {
export const withAlertStoreConnect = (mapState) => {
const isAlertOpen = isAlertOpenFactory();
const getAlertPayload = getAlertPayloadFactory();