mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -7,7 +7,7 @@ import { FinancialStatement, DashboardPageContent } from '@/components';
|
||||
import InventoryItemDetailsActionsBar from './InventoryItemDetailsActionsBar';
|
||||
import InventoryItemDetailsHeader from './InventoryItemDetailsHeader';
|
||||
|
||||
import withInventoryItemDetailsActions from './withInventoryItemDetailsActions';
|
||||
import { withInventoryItemDetailsActions } from './withInventoryItemDetailsActions';
|
||||
import { InventoryItemDetailsProvider } from './InventoryItemDetailsProvider';
|
||||
import {
|
||||
InventoryItemDetailsLoadingBar,
|
||||
|
||||
@@ -16,12 +16,12 @@ import NumberFormatDropdown from '@/components/NumberFormatDropdown';
|
||||
import { InventoryItemDetailsExportMenu } from './components';
|
||||
|
||||
import { useInventoryItemDetailsContext } from './InventoryItemDetailsProvider';
|
||||
import withInventoryItemDetails from './withInventoryItemDetails';
|
||||
import withInventoryItemDetailsActions from './withInventoryItemDetailsActions';
|
||||
import { withInventoryItemDetails } from './withInventoryItemDetails';
|
||||
import { withInventoryItemDetailsActions } from './withInventoryItemDetailsActions';
|
||||
|
||||
import { compose, saveInvoke } from '@/utils';
|
||||
import { DialogsName } from '@/constants/dialogs';
|
||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
||||
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||
|
||||
/**
|
||||
* Inventory item details actions bar.
|
||||
|
||||
@@ -7,7 +7,7 @@ import { InventoryItemDetailsTable } from './InventoryItemDetailsTable';
|
||||
|
||||
import { FinancialReportBody } from '../FinancialReportPage';
|
||||
import { FinancialSheetSkeleton } from '@/components/FinancialSheet';
|
||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
||||
import { withCurrentOrganization } from '@/containers/Organization/withCurrentOrganization';
|
||||
|
||||
/**
|
||||
* Inventory item details body.
|
||||
|
||||
@@ -12,8 +12,8 @@ import FinancialStatementHeader from '../FinancialStatementHeader';
|
||||
import InventoryItemDetailsHeaderGeneralPanel from './InventoryItemDetailsHeaderGeneralPanel';
|
||||
import InventoryItemDetailsHeaderDimensionsPanel from './InventoryItemDetailsHeaderDimensionsPanel';
|
||||
|
||||
import withInventoryItemDetails from './withInventoryItemDetails';
|
||||
import withInventoryItemDetailsActions from './withInventoryItemDetailsActions';
|
||||
import { withInventoryItemDetails } from './withInventoryItemDetails';
|
||||
import { withInventoryItemDetailsActions } from './withInventoryItemDetailsActions';
|
||||
|
||||
import {
|
||||
getInventoryItemDetailsDefaultQuery,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getInventoryItemDetailsFilterDrawer } from '@/store/financialStatement/financialStatements.selectors';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withInventoryItemDetails = (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
inventoryItemDetailDrawerFilter: getInventoryItemDetailsFilterDrawer(
|
||||
|
||||
@@ -7,4 +7,4 @@ const mapActionsToProps = (dispatch) => ({
|
||||
dispatch(toggleInventoryItemDetailsFilterDrawer(toggle)),
|
||||
});
|
||||
|
||||
export default connect(null, mapActionsToProps);
|
||||
export const withInventoryItemDetailsActions = connect(null, mapActionsToProps);
|
||||
|
||||
Reference in New Issue
Block a user