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

@@ -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,

View File

@@ -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.

View File

@@ -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.

View File

@@ -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,

View File

@@ -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(

View File

@@ -7,4 +7,4 @@ const mapActionsToProps = (dispatch) => ({
dispatch(toggleInventoryItemDetailsFilterDrawer(toggle)),
});
export default connect(null, mapActionsToProps);
export const withInventoryItemDetailsActions = connect(null, mapActionsToProps);