mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -3,7 +3,7 @@ import React, { useEffect } from 'react';
|
||||
import { Scrollbar } from 'react-scrollbars-custom';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
||||
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||
|
||||
import { useObserveSidebarExpendedBodyclass } from './hooks';
|
||||
import { compose } from '@/utils';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Button, Popover, Menu, Position } from '@blueprintjs/core';
|
||||
|
||||
import { Icon } from '@/components';
|
||||
|
||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
||||
import { withCurrentOrganization } from '@/containers/Organization/withCurrentOrganization';
|
||||
import { useAuthenticatedAccount } from '@/hooks/query';
|
||||
import { compose, firstLettersArgs } from '@/utils';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withDashboardSidebar = (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
sidebarSubmenuOpen: state.dashboard.sidebarSubmenu.isOpen,
|
||||
|
||||
@@ -14,4 +14,4 @@ const mapActionsToProps = (dispatch) => ({
|
||||
closeDashboardSidebarSubmenu: () => dispatch(closeSidebarSubmenu()),
|
||||
});
|
||||
|
||||
export default connect(null, mapActionsToProps);
|
||||
export const withDashboardSidebarActions = connect(null, mapActionsToProps);
|
||||
|
||||
Reference in New Issue
Block a user