mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
Compare commits
1 Commits
v0.24.5
...
bugs-bashi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d42a1c67a |
@@ -6,7 +6,7 @@ import { MenuItem } from '@blueprintjs/core';
|
|||||||
import { MenuItemNestedText, FSelect } from '@/components';
|
import { MenuItemNestedText, FSelect } from '@/components';
|
||||||
import { accountPredicate } from './_components';
|
import { accountPredicate } from './_components';
|
||||||
import { DialogsName } from '@/constants/dialogs';
|
import { DialogsName } from '@/constants/dialogs';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import { usePreprocessingAccounts } from './_hooks';
|
import { usePreprocessingAccounts } from './_hooks';
|
||||||
|
|
||||||
// Create new account renderer.
|
// Create new account renderer.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { MenuItem } from '@blueprintjs/core';
|
|||||||
import { ItemRenderer, ItemPredicate } from '@blueprintjs/select';
|
import { ItemRenderer, ItemPredicate } from '@blueprintjs/select';
|
||||||
import { DialogsName } from '@/constants/dialogs';
|
import { DialogsName } from '@/constants/dialogs';
|
||||||
import { FSuggest, Suggest, FormattedMessage as T } from '@/components';
|
import { FSuggest, Suggest, FormattedMessage as T } from '@/components';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import { usePreprocessingAccounts } from './_hooks';
|
import { usePreprocessingAccounts } from './_hooks';
|
||||||
|
|
||||||
// Account interface
|
// Account interface
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { AppIntlProvider } from './AppIntlProvider';
|
|||||||
import { useSplashLoading } from '@/hooks/state';
|
import { useSplashLoading } from '@/hooks/state';
|
||||||
|
|
||||||
import { useWatchImmediate } from '../hooks';
|
import { useWatchImmediate } from '../hooks';
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
|
|
||||||
const SUPPORTED_LOCALES = [
|
const SUPPORTED_LOCALES = [
|
||||||
{ name: 'English', value: 'en' },
|
{ name: 'English', value: 'en' },
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
import { FMultiSelect } from '../Forms';
|
import { FMultiSelect } from '../Forms';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
|
|
||||||
import { ButtonLink } from '../Button';
|
import { ButtonLink } from '../Button';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
function CustomerDrawerLinkComponent({
|
function CustomerDrawerLinkComponent({
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import * as R from 'ramda';
|
|||||||
import { useFormikContext } from 'formik';
|
import { useFormikContext } from 'formik';
|
||||||
import { createNewItemFromQuery, createNewItemRenderer } from './utils';
|
import { createNewItemFromQuery, createNewItemRenderer } from './utils';
|
||||||
import { FSelect } from '../Forms';
|
import { FSelect } from '../Forms';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { useCreateAutofillListener } from '@/hooks/state/autofill';
|
import { useCreateAutofillListener } from '@/hooks/state/autofill';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useHistory } from 'react-router-dom';
|
|||||||
|
|
||||||
import { If, Icon } from '@/components';
|
import { If, Icon } from '@/components';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
function DashboardBackLink({ dashboardBackLink, breadcrumbs }) {
|
function DashboardBackLink({ dashboardBackLink, breadcrumbs }) {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React, { useEffect, Suspense } from 'react';
|
import React, { useEffect, Suspense } from 'react';
|
||||||
import { CLASSES } from '@/constants/classes';
|
import { CLASSES } from '@/constants/classes';
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { Spinner } from '@blueprintjs/core';
|
import { Spinner } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withUniversalSearchActions from '@/containers/UniversalSearch/withUniversalSearchActions';
|
import { withUniversalSearchActions } from '@/containers/UniversalSearch/withUniversalSearchActions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dashboard pages wrapper.
|
* Dashboard pages wrapper.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
|
|||||||
import SplitPane from 'react-split-pane';
|
import SplitPane from 'react-split-pane';
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
|
|
||||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
function DashboardSplitPane({
|
function DashboardSplitPane({
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ import DashboardTopbarUser from '@/components/Dashboard/TopbarUser';
|
|||||||
import DashboardBreadcrumbs from '@/components/Dashboard/DashboardBreadcrumbs';
|
import DashboardBreadcrumbs from '@/components/Dashboard/DashboardBreadcrumbs';
|
||||||
import DashboardBackLink from '@/components/Dashboard/DashboardBackLink';
|
import DashboardBackLink from '@/components/Dashboard/DashboardBackLink';
|
||||||
|
|
||||||
import withUniversalSearchActions from '@/containers/UniversalSearch/withUniversalSearchActions';
|
import { withUniversalSearchActions } from '@/containers/UniversalSearch/withUniversalSearchActions';
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
import QuickNewDropdown from '@/containers/QuickNewDropdown/QuickNewDropdown';
|
import QuickNewDropdown from '@/containers/QuickNewDropdown/QuickNewDropdown';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import React from 'react';
|
|||||||
import { useHotkeys } from 'react-hotkeys-hook';
|
import { useHotkeys } from 'react-hotkeys-hook';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import { getDashboardRoutes } from '@/routes/dashboard';
|
import { getDashboardRoutes } from '@/routes/dashboard';
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import withUniversalSearchActions from '@/containers/UniversalSearch/withUniversalSearchActions';
|
import { withUniversalSearchActions } from '@/containers/UniversalSearch/withUniversalSearchActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
import BigcapitalLoading from './BigcapitalLoading';
|
import BigcapitalLoading from './BigcapitalLoading';
|
||||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||||
|
|
||||||
function SplashScreenComponent({ splashScreenLoading }) {
|
function SplashScreenComponent({ splashScreenLoading }) {
|
||||||
return splashScreenLoading ? <BigcapitalLoading /> : null;
|
return splashScreenLoading ? <BigcapitalLoading /> : null;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { FormattedMessage as T } from '@/components';
|
|||||||
|
|
||||||
import { useAuthActions } from '@/hooks/state';
|
import { useAuthActions } from '@/hooks/state';
|
||||||
|
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
import { useAuthenticatedAccount } from '@/hooks/query';
|
import { useAuthenticatedAccount } from '@/hooks/query';
|
||||||
import { firstLettersArgs, compose } from '@/utils';
|
import { firstLettersArgs, compose } from '@/utils';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Dialog } from '@blueprintjs/core';
|
import { Dialog } from '@blueprintjs/core';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
import '@/style/components/Dialog/Dialog.scss';
|
import '@/style/components/Dialog/Dialog.scss';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { Position, Drawer } from '@blueprintjs/core';
|
|||||||
import '@/style/components/Drawer.scss';
|
import '@/style/components/Drawer.scss';
|
||||||
|
|
||||||
import { DrawerProvider } from './DrawerProvider';
|
import { DrawerProvider } from './DrawerProvider';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
import { Classes, Icon, H4, Button } from '@blueprintjs/core';
|
import { Classes, Icon, H4, Button } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { useDrawerContext } from './DrawerProvider';
|
import { useDrawerContext } from './DrawerProvider';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import * as R from 'ramda';
|
|||||||
import { DetailItem } from '@/components';
|
import { DetailItem } from '@/components';
|
||||||
import { isEqual } from 'lodash';
|
import { isEqual } from 'lodash';
|
||||||
|
|
||||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
import { withCurrentOrganization } from '@/containers/Organization/withCurrentOrganization';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detail exchange rate item.
|
* Detail exchange rate item.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
import withFeatureCan from './withFeatureCan';
|
import { withFeatureCan } from './withFeatureCan';
|
||||||
|
|
||||||
function FeatureCanJSX({ feature, children, isFeatureCan }) {
|
function FeatureCanJSX({ feature, children, isFeatureCan }) {
|
||||||
return isFeatureCan && children;
|
return isFeatureCan && children;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { getDashboardFeaturesSelector } from '@/store/dashboard/dashboard.selectors';
|
import { getDashboardFeaturesSelector } from '@/store/dashboard/dashboard.selectors';
|
||||||
|
|
||||||
export default (mapState) => {
|
export const withFeatureCan = (mapState) => {
|
||||||
const featuresSelector = getDashboardFeaturesSelector();
|
const featuresSelector = getDashboardFeaturesSelector();
|
||||||
|
|
||||||
const mapStateToProps = (state, props) => {
|
const mapStateToProps = (state, props) => {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { Redirect } from 'react-router-dom';
|
import { Redirect } from 'react-router-dom';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import withAuthentication from '@/containers/Authentication/withAuthentication';
|
import { withAuthentication } from '@/containers/Authentication/withAuthentication';
|
||||||
import withOrganization from '@/containers/Organization/withOrganization';
|
import { withOrganization } from '@/containers/Organization/withOrganization';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures organization is not ready.
|
* Ensures organization is not ready.
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import { connect } from 'react-redux';
|
|||||||
import { Redirect } from 'react-router-dom';
|
import { Redirect } from 'react-router-dom';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
import withAuthentication from '@/containers/Authentication/withAuthentication';
|
import { withAuthentication } from '@/containers/Authentication/withAuthentication';
|
||||||
import withOrganization from '@/containers/Organization/withOrganization';
|
import { withOrganization } from '@/containers/Organization/withOrganization';
|
||||||
|
|
||||||
function EnsureOrganizationIsReady({
|
function EnsureOrganizationIsReady({
|
||||||
// #ownProps
|
// #ownProps
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { includes } from 'lodash';
|
|||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { Redirect } from 'react-router-dom';
|
import { Redirect } from 'react-router-dom';
|
||||||
import withSubscriptions from '@/containers/Subscriptions/withSubscriptions';
|
import { withSubscriptions } from '@/containers/Subscriptions/withSubscriptions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures the given subscription type is active or redirect to the given route.
|
* Ensures the given subscription type is active or redirect to the given route.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { includes } from 'lodash';
|
|||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { Redirect } from 'react-router-dom';
|
import { Redirect } from 'react-router-dom';
|
||||||
import withSubscriptions from '@/containers/Subscriptions/withSubscriptionss';
|
import { withSubscriptions } from '@/containers/Subscriptions/withSubscriptionss';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures the given subscription type is active or redirect to the given route.
|
* Ensures the given subscription type is active or redirect to the given route.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { includes } from 'lodash';
|
|||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { Redirect } from 'react-router-dom';
|
import { Redirect } from 'react-router-dom';
|
||||||
import withSubscriptions from '@/containers/Subscriptions/withSubscriptionss';
|
import { withSubscriptions } from '@/containers/Subscriptions/withSubscriptionss';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures the given subscription type is active or redirect to the given route.
|
* Ensures the given subscription type is active or redirect to the given route.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
import { FMultiSelect } from '@/components/Forms';
|
import { FMultiSelect } from '@/components/Forms';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Items multi-select.
|
* Items multi-select.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { CLASSES } from '@/constants/classes';
|
|||||||
|
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import PreferencesContentRoute from '@/components/Preferences/PreferencesContent
|
|||||||
import DashboardErrorBoundary from '@/components/Dashboard/DashboardErrorBoundary';
|
import DashboardErrorBoundary from '@/components/Dashboard/DashboardErrorBoundary';
|
||||||
import PreferencesSidebar from '@/components/Preferences/PreferencesSidebar';
|
import PreferencesSidebar from '@/components/Preferences/PreferencesSidebar';
|
||||||
|
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
|
|
||||||
import '@/style/pages/Preferences/Page.scss';
|
import '@/style/pages/Preferences/Page.scss';
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import CurrenciesActions from '@/containers/Preferences/Currencies/CurrenciesAct
|
|||||||
import WarehousesActions from '@/containers/Preferences/Warehouses/WarehousesActions';
|
import WarehousesActions from '@/containers/Preferences/Warehouses/WarehousesActions';
|
||||||
import BranchesActions from '@/containers/Preferences/Branches/BranchesActions';
|
import BranchesActions from '@/containers/Preferences/Branches/BranchesActions';
|
||||||
import ApiKeysActions from '@/containers/Preferences/ApiKeys/ApiKeysActions';
|
import ApiKeysActions from '@/containers/Preferences/ApiKeys/ApiKeysActions';
|
||||||
import withDashboard from '@/containers/Dashboard/withDashboard';
|
import { withDashboard } from '@/containers/Dashboard/withDashboard';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import * as R from 'ramda';
|
|||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { FSelect } from '@/components';
|
import { FSelect } from '@/components';
|
||||||
import { DialogsName } from '@/constants/dialogs';
|
import { DialogsName } from '@/constants/dialogs';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import { MenuItem } from '@blueprintjs/core';
|
import { MenuItem } from '@blueprintjs/core';
|
||||||
|
|
||||||
// Create new account renderer.
|
// Create new account renderer.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
|
|
||||||
import { ButtonLink } from '../Button';
|
import { ButtonLink } from '../Button';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
function VendorDrawerLinkComponent({
|
function VendorDrawerLinkComponent({
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
import { useFormikContext } from 'formik';
|
import { useFormikContext } from 'formik';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { createNewItemFromQuery, createNewItemRenderer } from './utils';
|
import { createNewItemFromQuery, createNewItemRenderer } from './utils';
|
||||||
import { FSelect } from '../Forms';
|
import { FSelect } from '../Forms';
|
||||||
import { useCreateAutofillListener } from '@/hooks/state/autofill';
|
import { useCreateAutofillListener } from '@/hooks/state/autofill';
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ import { useRefreshJournals } from '@/hooks/query/manualJournals';
|
|||||||
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
||||||
import { ManualJournalAction, AbilitySubject } from '@/constants/abilityOption';
|
import { ManualJournalAction, AbilitySubject } from '@/constants/abilityOption';
|
||||||
|
|
||||||
import withManualJournals from './withManualJournals';
|
import { withManualJournals } from './withManualJournals';
|
||||||
import withManualJournalsActions from './withManualJournalsActions';
|
import { withManualJournalsActions } from './withManualJournalsActions';
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import withSettingsActions from '@/containers/Settings/withSettingsActions';
|
import { withSettingsActions } from '@/containers/Settings/withSettingsActions';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
import { useDownloadExportPdf } from '@/hooks/query/FinancialReports/use-export-pdf';
|
import { useDownloadExportPdf } from '@/hooks/query/FinancialReports/use-export-pdf';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ import ManualJournalsEmptyStatus from './ManualJournalsEmptyStatus';
|
|||||||
|
|
||||||
import { ActionsMenu } from './components';
|
import { ActionsMenu } from './components';
|
||||||
|
|
||||||
import withManualJournals from './withManualJournals';
|
import { withManualJournals } from './withManualJournals';
|
||||||
import withManualJournalsActions from './withManualJournalsActions';
|
import { withManualJournalsActions } from './withManualJournalsActions';
|
||||||
import withAlertsActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
|
|
||||||
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
||||||
import { useMemorizedColumnsWidths } from '@/hooks';
|
import { useMemorizedColumnsWidths } from '@/hooks';
|
||||||
@@ -35,7 +35,7 @@ function ManualJournalsDataTable({
|
|||||||
setManualJournalsTableState,
|
setManualJournalsTableState,
|
||||||
setManualJournalsSelectedRows,
|
setManualJournalsSelectedRows,
|
||||||
|
|
||||||
// #withAlertsActions
|
// #withAlertActions
|
||||||
openAlert,
|
openAlert,
|
||||||
|
|
||||||
// #withDrawerActions
|
// #withDrawerActions
|
||||||
@@ -157,7 +157,7 @@ export default compose(
|
|||||||
withManualJournals(({ manualJournalsTableState }) => ({
|
withManualJournals(({ manualJournalsTableState }) => ({
|
||||||
manualJournalsTableState,
|
manualJournalsTableState,
|
||||||
})),
|
})),
|
||||||
withAlertsActions,
|
withAlertActions,
|
||||||
withDrawerActions,
|
withDrawerActions,
|
||||||
withSettings(({ manualJournalsSettings }) => ({
|
withSettings(({ manualJournalsSettings }) => ({
|
||||||
manualJournalsTableSize: manualJournalsSettings?.tableSize,
|
manualJournalsTableSize: manualJournalsSettings?.tableSize,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { transformTableStateToQuery, compose } from '@/utils';
|
|||||||
import { ManualJournalsListProvider } from './ManualJournalsListProvider';
|
import { ManualJournalsListProvider } from './ManualJournalsListProvider';
|
||||||
import ManualJournalsDataTable from './ManualJournalsDataTable';
|
import ManualJournalsDataTable from './ManualJournalsDataTable';
|
||||||
import ManualJournalsActionsBar from './ManualJournalActionsBar';
|
import ManualJournalsActionsBar from './ManualJournalActionsBar';
|
||||||
import withManualJournals from './withManualJournals';
|
import { withManualJournals } from './withManualJournals';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import { pick } from 'lodash';
|
|||||||
|
|
||||||
import { DashboardViewsTabs } from '@/components';
|
import { DashboardViewsTabs } from '@/components';
|
||||||
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
import { useManualJournalsContext } from './ManualJournalsListProvider';
|
||||||
import withManualJournals from './withManualJournals';
|
import { withManualJournals } from './withManualJournals';
|
||||||
import withManualJournalsActions from './withManualJournalsActions';
|
import { withManualJournalsActions } from './withManualJournalsActions';
|
||||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
import { withDashboardActions } from '@/containers/Dashboard/withDashboardActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
manualJournalTableStateChangedFactory,
|
manualJournalTableStateChangedFactory,
|
||||||
} from '@/store/manualJournals/manualJournals.selectors';
|
} from '@/store/manualJournals/manualJournals.selectors';
|
||||||
|
|
||||||
export default (mapState) => {
|
export const withManualJournals = (mapState) => {
|
||||||
const getJournalsTableQuery = getManualJournalsTableStateFactory();
|
const getJournalsTableQuery = getManualJournalsTableStateFactory();
|
||||||
const manualJournalTableStateChanged =
|
const manualJournalTableStateChanged =
|
||||||
manualJournalTableStateChangedFactory();
|
manualJournalTableStateChangedFactory();
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ const mapActionsToProps = (dispatch) => ({
|
|||||||
dispatch(setManualJournalsSelectedRows(selectedRows)),
|
dispatch(setManualJournalsSelectedRows(selectedRows)),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(null, mapActionsToProps);
|
export const withManualJournalsActions = connect(null, mapActionsToProps);
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ import MakeJournalFormFooter from './MakeJournalFormFooter';
|
|||||||
import MakeJournalFormDialogs from './MakeJournalFormDialogs';
|
import MakeJournalFormDialogs from './MakeJournalFormDialogs';
|
||||||
import MakeJournalFormTopBar from './MakeJournalFormTopBar';
|
import MakeJournalFormTopBar from './MakeJournalFormTopBar';
|
||||||
|
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
import { withCurrentOrganization } from '@/containers/Organization/withCurrentOrganization';
|
||||||
|
|
||||||
import { AppToaster } from '@/components';
|
import { AppToaster } from '@/components';
|
||||||
import { PageForm } from '@/components/PageForm';
|
import { PageForm } from '@/components/PageForm';
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import {
|
|||||||
FFormGroup,
|
FFormGroup,
|
||||||
} from '@/components';
|
} from '@/components';
|
||||||
|
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Journal number field of make journal form.
|
* Journal number field of make journal form.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import { CellType, Features, Align } from '@/constants';
|
|||||||
|
|
||||||
import { useCurrentOrganization, useFeatureCan } from '@/hooks/state';
|
import { useCurrentOrganization, useFeatureCan } from '@/hooks/state';
|
||||||
import { useJournalIsForeign } from './utils';
|
import { useJournalIsForeign } from './utils';
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import { transactionNumber } from '@/utils';
|
import { transactionNumber } from '@/utils';
|
||||||
import { useUpdateEffect } from '@/hooks';
|
import { useUpdateEffect } from '@/hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
||||||
import { AbilitySubject, ManualJournalAction } from '@/constants/abilityOption';
|
import { AbilitySubject, ManualJournalAction } from '@/constants/abilityOption';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
|
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { AbilitySubject, AccountAction } from '@/constants/abilityOption';
|
import { AbilitySubject, AccountAction } from '@/constants/abilityOption';
|
||||||
import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ import { useAccountsChartContext } from './AccountsChartProvider';
|
|||||||
import { useDownloadExportPdf } from '@/hooks/query/FinancialReports/use-export-pdf';
|
import { useDownloadExportPdf } from '@/hooks/query/FinancialReports/use-export-pdf';
|
||||||
import { useBulkDeleteAccountsDialog } from './hooks/use-bulk-delete-accounts-dialog';
|
import { useBulkDeleteAccountsDialog } from './hooks/use-bulk-delete-accounts-dialog';
|
||||||
|
|
||||||
import withAccounts from './withAccounts';
|
import { withAccounts } from './withAccounts';
|
||||||
import withAccountsTableActions from './withAccountsTableActions';
|
import { withAccountsTableActions } from './withAccountsTableActions';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import withSettingsActions from '@/containers/Settings/withSettingsActions';
|
import { withSettingsActions } from '@/containers/Settings/withSettingsActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import { AccountsChartProvider } from './AccountsChartProvider';
|
|||||||
import AccountsActionsBar from './AccountsActionsBar';
|
import AccountsActionsBar from './AccountsActionsBar';
|
||||||
import AccountsDataTable from './AccountsDataTable';
|
import AccountsDataTable from './AccountsDataTable';
|
||||||
|
|
||||||
import withAccounts from '@/containers/Accounts/withAccounts';
|
import { withAccounts } from '@/containers/Accounts/withAccounts';
|
||||||
import withAccountsTableActions from './withAccountsTableActions';
|
import { withAccountsTableActions } from './withAccountsTableActions';
|
||||||
|
|
||||||
import { transformAccountsStateToQuery } from './utils';
|
import { transformAccountsStateToQuery } from './utils';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ import { useMemorizedColumnsWidths } from '@/hooks';
|
|||||||
import { TABLES } from '@/constants/tables';
|
import { TABLES } from '@/constants/tables';
|
||||||
import { DialogsName } from '@/constants/dialogs';
|
import { DialogsName } from '@/constants/dialogs';
|
||||||
|
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import { withSettings } from '@/containers/Settings/withSettings';
|
||||||
import withAlertsActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import { withDialogActions } from '@/containers/Dialog/withDialogActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import withAccountsTableActions from './withAccountsTableActions';
|
import { withAccountsTableActions } from './withAccountsTableActions';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ function AccountsDataTable({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default compose(
|
export default compose(
|
||||||
withAlertsActions,
|
withAlertActions,
|
||||||
withDrawerActions,
|
withDrawerActions,
|
||||||
withDialogActions,
|
withDialogActions,
|
||||||
withAccountsTableActions,
|
withAccountsTableActions,
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import intl from 'react-intl-universal';
|
|||||||
import { DashboardViewsTabs } from '@/components';
|
import { DashboardViewsTabs } from '@/components';
|
||||||
import { useAccountsChartContext } from './AccountsChartProvider';
|
import { useAccountsChartContext } from './AccountsChartProvider';
|
||||||
|
|
||||||
import withAccounts from './withAccounts';
|
import { withAccounts } from './withAccounts';
|
||||||
import withAccountsTableActions from './withAccountsTableActions';
|
import { withAccountsTableActions } from './withAccountsTableActions';
|
||||||
|
|
||||||
import { compose, transfromViewsToTabs } from '@/utils';
|
import { compose, transfromViewsToTabs } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
accountsTableStateChangedFactory,
|
accountsTableStateChangedFactory,
|
||||||
} from '@/store/accounts/accounts.selectors';
|
} from '@/store/accounts/accounts.selectors';
|
||||||
|
|
||||||
export default (mapState) => {
|
export const withAccounts = (mapState) => {
|
||||||
const getAccountsTableState = getAccountsTableStateFactory();
|
const getAccountsTableState = getAccountsTableStateFactory();
|
||||||
const accountsTableStateChanged = accountsTableStateChangedFactory();
|
const accountsTableStateChanged = accountsTableStateChangedFactory();
|
||||||
|
|
||||||
|
|||||||
@@ -13,4 +13,5 @@ const mapActionsToProps = (dispatch) => ({
|
|||||||
dispatch(setAccountsSelectedRows(selectedRows)),
|
dispatch(setAccountsSelectedRows(selectedRows)),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(null, mapActionsToProps);
|
export const withAccountsTableActions = connect(null, mapActionsToProps);
|
||||||
|
export const withAccountsActions = withAccountsTableActions;
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ export const mapDispatchToProps = (dispatch) => ({
|
|||||||
closeAlert: (name, payload) => dispatch({ type: t.CLOSE_ALERT, name, payload }),
|
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,
|
getAlertPayloadFactory,
|
||||||
} from '@/store/dashboard/dashboard.selectors';
|
} from '@/store/dashboard/dashboard.selectors';
|
||||||
|
|
||||||
export default (mapState) => {
|
export const withAlertStoreConnect = (mapState) => {
|
||||||
const isAlertOpen = isAlertOpenFactory();
|
const isAlertOpen = isAlertOpenFactory();
|
||||||
const getAlertPayload = getAlertPayloadFactory();
|
const getAlertPayload = getAlertPayloadFactory();
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import intl from 'react-intl-universal';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { useActivateAccount } from '@/hooks/query';
|
import { useActivateAccount } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { queryCache } from 'react-query';
|
import { queryCache } from 'react-query';
|
||||||
import { FormattedMessage as T, AppToaster } from '@/components';
|
import { FormattedMessage as T, AppToaster } from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { queryCache } from 'react-query';
|
import { queryCache } from 'react-query';
|
||||||
import { AppToaster } from '@/components';
|
import { AppToaster } from '@/components';
|
||||||
|
|
||||||
import withAccountsActions from '@/containers/Accounts/withAccountsTableActions';
|
import { withAccountsActions } from '@/containers/Accounts/withAccountsTableActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import {
|
|||||||
|
|
||||||
import { handleDeleteErrors } from '@/containers/Accounts/utils';
|
import { handleDeleteErrors } from '@/containers/Accounts/utils';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeleteAccount } from '@/hooks/query';
|
import { useDeleteAccount } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import intl from 'react-intl-universal';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { useInactivateAccount } from '@/hooks/query';
|
import { useInactivateAccount } from '@/hooks/query';
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import intl from 'react-intl-universal';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { handleDeleteErrors } from '@/containers/Purchases/Bills/BillForm/utils';
|
import { handleDeleteErrors } from '@/containers/Purchases/Bills/BillForm/utils';
|
||||||
import { useDeleteBill } from '@/hooks/query';
|
import { useDeleteBill } from '@/hooks/query';
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import { useDeleteLandedCost } from '@/hooks/query';
|
|||||||
|
|
||||||
import { AppToaster } from '@/components';
|
import { AppToaster } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { useOpenBill } from '@/hooks/query';
|
import { useOpenBill } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { useDeleteBranch } from '@/hooks/query';
|
import { useDeleteBranch } from '@/hooks/query';
|
||||||
import { handleDeleteErrors } from '@/containers/Preferences/Branches/utils';
|
import { handleDeleteErrors } from '@/containers/Preferences/Branches/utils';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
|
|
||||||
import { useMarkBranchAsPrimary } from '@/hooks/query';
|
import { useMarkBranchAsPrimary } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import {
|
|||||||
|
|
||||||
import { useDeleteCashflowTransaction } from '@/hooks/query';
|
import { useDeleteCashflowTransaction } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
|
|
||||||
import { useActivateContact } from '@/hooks/query';
|
import { useActivateContact } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useInactivateContact } from '@/hooks/query';
|
import { useInactivateContact } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
FormattedHTMLMessage,
|
FormattedHTMLMessage,
|
||||||
} from '@/components';
|
} from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeleteCreditNote } from '@/hooks/query';
|
import { useDeleteCreditNote } from '@/hooks/query';
|
||||||
import { handleDeleteErrors } from '@/containers/Sales/CreditNotes/CreditNotesLanding/utils';
|
import { handleDeleteErrors } from '@/containers/Sales/CreditNotes/CreditNotesLanding/utils';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
|
|
||||||
import { useOpenCreditNote } from '@/hooks/query';
|
import { useOpenCreditNote } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
FormattedHTMLMessage,
|
FormattedHTMLMessage,
|
||||||
} from '@/components';
|
} from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeleteReconcileCredit } from '@/hooks/query';
|
import { useDeleteReconcileCredit } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import { FormattedMessage as T, AppToaster } from '@/components';
|
|||||||
|
|
||||||
import { useDeleteRefundCreditNote } from '@/hooks/query';
|
import { useDeleteRefundCreditNote } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useDeleteCurrency } from '@/hooks/query';
|
import { useDeleteCurrency } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
|
|
||||||
import { useActivateContact } from '@/hooks/query';
|
import { useActivateContact } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { AppToaster } from '@/components';
|
import { AppToaster } from '@/components';
|
||||||
import { transformErrors } from '@/containers/Customers/utils';
|
import { transformErrors } from '@/containers/Customers/utils';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import {
|
|||||||
} from '@/components';
|
} from '@/components';
|
||||||
import { transformErrors } from '@/containers/Customers/utils';
|
import { transformErrors } from '@/containers/Customers/utils';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeleteCustomer } from '@/hooks/query';
|
import { useDeleteCustomer } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useInactivateContact } from '@/hooks/query';
|
import { useInactivateContact } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import { queryCache } from 'react-query';
|
|||||||
|
|
||||||
import { useApproveEstimate } from '@/hooks/query';
|
import { useApproveEstimate } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import {
|
|||||||
|
|
||||||
import { useDeleteEstimate } from '@/hooks/query';
|
import { useDeleteEstimate } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useDeliverEstimate } from '@/hooks/query';
|
import { useDeliverEstimate } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useRejectEstimate } from '@/hooks/query';
|
import { useRejectEstimate } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import intl from 'react-intl-universal';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeleteExpense } from '@/hooks/query';
|
import { useDeleteExpense } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose, saveInvoke } from '@/utils';
|
import { compose, saveInvoke } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import intl from 'react-intl-universal';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { usePublishExpense } from '@/hooks/query';
|
import { usePublishExpense } from '@/hooks/query';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { AppToaster, FormattedMessage as T } from '@/components';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { useCancelBadDebt } from '@/hooks/query';
|
import { useCancelBadDebt } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import { useDeleteInvoice } from '@/hooks/query';
|
|||||||
|
|
||||||
import { handleDeleteErrors } from '@/containers/Sales/Invoices/InvoicesLanding/components';
|
import { handleDeleteErrors } from '@/containers/Sales/Invoices/InvoicesLanding/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useDeliverInvoice } from '@/hooks/query';
|
import { useDeliverInvoice } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
FormattedHTMLMessage,
|
FormattedHTMLMessage,
|
||||||
} from '@/components';
|
} from '@/components';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
import { useDeleteInventoryAdjustment } from '@/hooks/query';
|
import { useDeleteInventoryAdjustment } from '@/hooks/query';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { usePublishInventoryAdjustment } from '@/hooks/query';
|
import { usePublishInventoryAdjustment } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useActivateItem } from '@/hooks/query';
|
import { useActivateItem } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { size } from 'lodash';
|
import { size } from 'lodash';
|
||||||
import { AppToaster } from '@/components';
|
import { AppToaster } from '@/components';
|
||||||
|
|
||||||
import withItemCategoriesActions from '@/containers/ItemsCategories/withItemCategoriesActions';
|
import { withItemCategoriesActions } from '@/containers/ItemsCategories/withItemCategoriesActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import {
|
|||||||
|
|
||||||
import { useDeleteItemCategory } from '@/hooks/query';
|
import { useDeleteItemCategory } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ import {
|
|||||||
import { handleDeleteErrors } from '@/containers/Items/utils';
|
import { handleDeleteErrors } from '@/containers/Items/utils';
|
||||||
import { useDeleteItem } from '@/hooks/query';
|
import { useDeleteItem } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withItemsActions from '@/containers/Items/withItemsActions';
|
import { withItemsActions } from '@/containers/Items/withItemsActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useInactivateItem } from '@/hooks/query';
|
import { useInactivateItem } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose, saveInvoke } from '@/utils';
|
import { compose, saveInvoke } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { useDeleteJournal } from '@/hooks/query';
|
import { useDeleteJournal } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
import { DRAWERS } from '@/constants/drawers';
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose, saveInvoke } from '@/utils';
|
import { compose, saveInvoke } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
import { AppToaster,FormattedMessage as T } from '@/components';
|
import { AppToaster,FormattedMessage as T } from '@/components';
|
||||||
import { usePublishJournal } from '@/hooks/query';
|
import { usePublishJournal } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose, saveInvoke } from '@/utils';
|
import { compose, saveInvoke } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import intl from 'react-intl-universal';
|
|||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { useDeletePaymentMade } from '@/hooks/query';
|
import { useDeletePaymentMade } from '@/hooks/query';
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import React from 'react';
|
|||||||
import { Intent, Alert } from '@blueprintjs/core';
|
import { Intent, Alert } from '@blueprintjs/core';
|
||||||
import { FormattedMessage as T } from '@/components';
|
import { FormattedMessage as T } from '@/components';
|
||||||
|
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
|
|
||||||
import { saveInvoke, compose } from '@/utils';
|
import { saveInvoke, compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useDeletePaymentReceive } from '@/hooks/query';
|
import { useDeletePaymentReceive } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import { withDrawerActions } from '@/containers/Drawer/withDrawerActions';
|
||||||
|
|
||||||
import { handleDeleteErrors } from './_utils';
|
import { handleDeleteErrors } from './_utils';
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Intent, Alert } from '@blueprintjs/core';
|
|||||||
|
|
||||||
import { useCloseReceipt } from '@/hooks/query';
|
import { useCloseReceipt } from '@/hooks/query';
|
||||||
|
|
||||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
import { withAlertStoreConnect } from '@/containers/Alert/withAlertStoreConnect';
|
||||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
import { withAlertActions } from '@/containers/Alert/withAlertActions';
|
||||||
|
|
||||||
import { compose } from '@/utils';
|
import { compose } from '@/utils';
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user