mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -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);
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
getAlertPayloadFactory,
|
||||
} from '@/store/dashboard/dashboard.selectors';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withAlertStoreConnect = (mapState) => {
|
||||
const isAlertOpen = isAlertOpenFactory();
|
||||
const getAlertPayload = getAlertPayloadFactory();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user