scrollNodes.current[tabIndex] = el}
+ ref={el => scrollNodes.current[tabIndex] = el as any}
className={tabIndex === items.length - 1 ? "saveButtonTableOffset" : undefined}
>
{i.component({
diff --git a/client-html/src/js/common/utils/actionsQueue.ts b/client-html/src/js/common/utils/actionsQueue.ts
index 86a74d4597c..47aece2ba4d 100644
--- a/client-html/src/js/common/utils/actionsQueue.ts
+++ b/client-html/src/js/common/utils/actionsQueue.ts
@@ -3,15 +3,15 @@
* No copying or use of this code is allowed without permission in writing from ish.
*/
-import { AnyArgFunction, PromiseReturnFunction } from "ish-ui";
-import { Dispatch } from "redux";
-import { addActionToQueue } from "../actions";
-import { IAction } from "../actions/IshAction";
-import { asyncValidateFieldArrayFieldCallback, getFieldArrayFieldMeta } from "./validation";
+import { AnyArgFunction, PromiseReturnFunction } from 'ish-ui';
+import { Dispatch } from 'redux';
+import { addActionToQueue } from '../actions';
+import { IAction } from '../actions/IshAction';
+import { asyncValidateFieldArrayFieldCallback, getFieldArrayFieldMeta } from './validation';
export const fieldUpdateHandler = (
values: any,
- dispatch: Dispatch,
+ dispatch: Dispatch
,
props: any,
blurredField: string,
entity: string,
diff --git a/client-html/src/js/containers/automation/components/Bindings.tsx b/client-html/src/js/containers/automation/components/Bindings.tsx
index 5002de2df16..a863e7030e4 100644
--- a/client-html/src/js/containers/automation/components/Bindings.tsx
+++ b/client-html/src/js/containers/automation/components/Bindings.tsx
@@ -13,6 +13,7 @@ import React, { useCallback, useMemo } from 'react';
import { Dispatch } from 'redux';
import { arrayPush, arrayRemove, Field, FieldArray } from 'redux-form';
import { makeStyles } from 'tss-react/mui';
+import { IAction } from '../../../common/actions/IshAction';
import DataTypeRenderer from '../../../common/components/form/DataTypeRenderer';
import { CatalogItemType } from '../../../model/common/Catalog';
import { IMPORT_TEMPLATES_FORM_NAME } from '../containers/import-templates/ImportTemplates';
@@ -217,7 +218,7 @@ interface BindingsProps {
form: string;
disabled?: boolean;
defaultVariables?: { type: string; name: string }[];
- dispatch: Dispatch;
+ dispatch: Dispatch
itemsType: BindingsItemType;
emailTemplates?: CatalogItemType[];
}
diff --git a/client-html/src/js/containers/automation/components/DataTypesMenu.tsx b/client-html/src/js/containers/automation/components/DataTypesMenu.tsx
index 5fe382423e6..5a07f1d26b6 100644
--- a/client-html/src/js/containers/automation/components/DataTypesMenu.tsx
+++ b/client-html/src/js/containers/automation/components/DataTypesMenu.tsx
@@ -17,6 +17,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { Form, getFormValues, initialize, InjectedFormProps, reduxForm } from 'redux-form';
+import { IAction } from '../../../common/actions/IshAction';
import FormField from '../../../common/components/form/formFields/FormField';
import { BindingsItemType } from './Bindings';
@@ -64,8 +65,8 @@ const BindingEditPopupBase = React.memo(
({
popupAnchorEl, onCancel, onSave, handleSubmit, invalid, values, reset
}) => {
- const nameRef = useRef();
- const popperRef = useRef();
+ const nameRef = useRef(undefined);
+ const popperRef = useRef(undefined);
const { classes } = useStyles();
@@ -161,7 +162,7 @@ interface DataTypesMenuProps {
anchorEl: HTMLElement;
handleClose: NoArgFunction;
handleAdd: (val: Binding) => void;
- dispatch: Dispatch;
+ dispatch: Dispatch
itemsType: BindingsItemType;
isOptionsBindingType?: boolean;
isVariablesBindingType?: boolean;
diff --git a/client-html/src/js/containers/automation/containers/email-templates/containers/EmailTemplatesForm.tsx b/client-html/src/js/containers/automation/containers/email-templates/containers/EmailTemplatesForm.tsx
index 7546c8fd7ee..04b748eb558 100644
--- a/client-html/src/js/containers/automation/containers/email-templates/containers/EmailTemplatesForm.tsx
+++ b/client-html/src/js/containers/automation/containers/email-templates/containers/EmailTemplatesForm.tsx
@@ -6,31 +6,32 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { EmailTemplate, MessageType } from "@api/model";
-import { FileCopy } from "@mui/icons-material";
-import DeleteForever from "@mui/icons-material/DeleteForever";
-import { Grid, Grow } from "@mui/material";
-import IconButton from "@mui/material/IconButton";
-import Tooltip from "@mui/material/Tooltip";
-import Typography from "@mui/material/Typography";
-import { InfoPill, mapSelectItems, NumberArgFunction, usePrevious } from "ish-ui";
-import React, { useCallback, useEffect, useMemo, useState } from "react";
-import { Dispatch } from "redux";
-import { FieldArray, Form, initialize, InjectedFormProps } from "redux-form";
-import AppBarActions from "../../../../../common/components/appBar/AppBarActions";
-import RouteChangeConfirm from "../../../../../common/components/dialog/RouteChangeConfirm";
-import FormField from "../../../../../common/components/form/formFields/FormField";
-import AppBarContainer from "../../../../../common/components/layout/AppBarContainer";
-import { getManualLink } from "../../../../../common/utils/getManualLink";
-import { validateSingleMandatoryField } from "../../../../../common/utils/validation";
-import { CatalogItemType } from "../../../../../model/common/Catalog";
-import AvailableFrom, { mapMessageAvailableFrom } from "../../../components/AvailableFrom";
-import Bindings, { BindingsRenderer } from "../../../components/Bindings";
-import getConfigActions from "../../../components/ImportExportConfig";
-import SaveAsNewAutomationModal from "../../../components/SaveAsNewAutomationModal";
-import { MessageTemplateEntityItems, MessageTemplateEntityName } from "../../../constants";
-import { validateKeycode, validateNameForQuotes } from "../../../utils";
-import ScriptCard from "../../scripts/components/cards/CardBase";
+import { EmailTemplate, MessageType } from '@api/model';
+import { FileCopy } from '@mui/icons-material';
+import DeleteForever from '@mui/icons-material/DeleteForever';
+import { Grid, Grow } from '@mui/material';
+import IconButton from '@mui/material/IconButton';
+import Tooltip from '@mui/material/Tooltip';
+import Typography from '@mui/material/Typography';
+import { InfoPill, mapSelectItems, NumberArgFunction, usePrevious } from 'ish-ui';
+import React, { useCallback, useEffect, useMemo, useState } from 'react';
+import { Dispatch } from 'redux';
+import { FieldArray, Form, initialize, InjectedFormProps } from 'redux-form';
+import { IAction } from '../../../../../common/actions/IshAction';
+import AppBarActions from '../../../../../common/components/appBar/AppBarActions';
+import RouteChangeConfirm from '../../../../../common/components/dialog/RouteChangeConfirm';
+import FormField from '../../../../../common/components/form/formFields/FormField';
+import AppBarContainer from '../../../../../common/components/layout/AppBarContainer';
+import { getManualLink } from '../../../../../common/utils/getManualLink';
+import { validateSingleMandatoryField } from '../../../../../common/utils/validation';
+import { CatalogItemType } from '../../../../../model/common/Catalog';
+import AvailableFrom, { mapMessageAvailableFrom } from '../../../components/AvailableFrom';
+import Bindings, { BindingsRenderer } from '../../../components/Bindings';
+import getConfigActions from '../../../components/ImportExportConfig';
+import SaveAsNewAutomationModal from '../../../components/SaveAsNewAutomationModal';
+import { MessageTemplateEntityItems, MessageTemplateEntityName } from '../../../constants';
+import { validateKeycode, validateNameForQuotes } from '../../../utils';
+import ScriptCard from '../../scripts/components/cards/CardBase';
const manualUrl = getManualLink("message-templates");
const getAuditsUrl = (id: number) => `audit?search=~"EmailTemplate" and entityId == ${id}`;
@@ -40,7 +41,7 @@ const messageTypes = Object.keys(MessageType).map(mapSelectItems).filter(t => t.
interface Props extends InjectedFormProps {
isNew: boolean;
values: EmailTemplate;
- dispatch: Dispatch;
+ dispatch: Dispatch
onCreate: (template: EmailTemplate) => void;
onUpdateInternal: (template: EmailTemplate) => void;
onUpdate: (template: EmailTemplate) => void;
diff --git a/client-html/src/js/containers/automation/containers/export-templates/containers/ExportTemplatesForm.tsx b/client-html/src/js/containers/automation/containers/export-templates/containers/ExportTemplatesForm.tsx
index 21151650946..e3cd277a7c8 100644
--- a/client-html/src/js/containers/automation/containers/export-templates/containers/ExportTemplatesForm.tsx
+++ b/client-html/src/js/containers/automation/containers/export-templates/containers/ExportTemplatesForm.tsx
@@ -6,31 +6,32 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { ExportTemplate, OutputType } from "@api/model";
-import DeleteForever from "@mui/icons-material/DeleteForever";
-import FileCopy from "@mui/icons-material/FileCopy";
-import Grid from "@mui/material/Grid";
-import Grow from "@mui/material/Grow";
-import IconButton from "@mui/material/IconButton";
-import Tooltip from "@mui/material/Tooltip";
-import Typography from "@mui/material/Typography";
-import { InfoPill, mapSelectItems, NumberArgFunction, usePrevious } from "ish-ui";
-import React, { useCallback, useEffect, useMemo, useState } from "react";
-import { Dispatch } from "redux";
-import { FieldArray, Form, initialize, InjectedFormProps } from "redux-form";
-import AppBarActions from "../../../../../common/components/appBar/AppBarActions";
-import RouteChangeConfirm from "../../../../../common/components/dialog/RouteChangeConfirm";
-import FormField from "../../../../../common/components/form/formFields/FormField";
-import AppBarContainer from "../../../../../common/components/layout/AppBarContainer";
-import { getManualLink } from "../../../../../common/utils/getManualLink";
-import { CatalogItemType } from "../../../../../model/common/Catalog";
-import { EntityItems, EntityName } from "../../../../../model/entities/common";
-import AvailableFrom, { mapAvailableFrom } from "../../../components/AvailableFrom";
-import Bindings, { BindingsRenderer } from "../../../components/Bindings";
-import getConfigActions from "../../../components/ImportExportConfig";
-import SaveAsNewAutomationModal from "../../../components/SaveAsNewAutomationModal";
-import { validateKeycode, validateNameForQuotes } from "../../../utils";
-import ScriptCard from "../../scripts/components/cards/CardBase";
+import { ExportTemplate, OutputType } from '@api/model';
+import DeleteForever from '@mui/icons-material/DeleteForever';
+import FileCopy from '@mui/icons-material/FileCopy';
+import Grid from '@mui/material/Grid';
+import Grow from '@mui/material/Grow';
+import IconButton from '@mui/material/IconButton';
+import Tooltip from '@mui/material/Tooltip';
+import Typography from '@mui/material/Typography';
+import { InfoPill, mapSelectItems, NumberArgFunction, usePrevious } from 'ish-ui';
+import React, { useCallback, useEffect, useMemo, useState } from 'react';
+import { Dispatch } from 'redux';
+import { FieldArray, Form, initialize, InjectedFormProps } from 'redux-form';
+import { IAction } from '../../../../../common/actions/IshAction';
+import AppBarActions from '../../../../../common/components/appBar/AppBarActions';
+import RouteChangeConfirm from '../../../../../common/components/dialog/RouteChangeConfirm';
+import FormField from '../../../../../common/components/form/formFields/FormField';
+import AppBarContainer from '../../../../../common/components/layout/AppBarContainer';
+import { getManualLink } from '../../../../../common/utils/getManualLink';
+import { CatalogItemType } from '../../../../../model/common/Catalog';
+import { EntityItems, EntityName } from '../../../../../model/entities/common';
+import AvailableFrom, { mapAvailableFrom } from '../../../components/AvailableFrom';
+import Bindings, { BindingsRenderer } from '../../../components/Bindings';
+import getConfigActions from '../../../components/ImportExportConfig';
+import SaveAsNewAutomationModal from '../../../components/SaveAsNewAutomationModal';
+import { validateKeycode, validateNameForQuotes } from '../../../utils';
+import ScriptCard from '../../scripts/components/cards/CardBase';
const manualUrl = getManualLink("export-templates");
const getAuditsUrl = (id: number) => `audit?search=~"ExportTemplate" and entityId == ${id}`;
@@ -40,7 +41,7 @@ const outputTypes = Object.keys(OutputType).map(mapSelectItems);
interface Props extends InjectedFormProps {
isNew: boolean;
values: ExportTemplate;
- dispatch: Dispatch;
+ dispatch: Dispatch
onCreate: (template: ExportTemplate) => void;
onUpdateInternal: (template: ExportTemplate) => void;
onUpdate: (template: ExportTemplate) => void;
diff --git a/client-html/src/js/containers/automation/containers/import-templates/components/ExecuteImportModal.tsx b/client-html/src/js/containers/automation/containers/import-templates/components/ExecuteImportModal.tsx
index 7c618046c01..173359b8d8b 100644
--- a/client-html/src/js/containers/automation/containers/import-templates/components/ExecuteImportModal.tsx
+++ b/client-html/src/js/containers/automation/containers/import-templates/components/ExecuteImportModal.tsx
@@ -1,25 +1,26 @@
-import { Binding, ExecuteImportRequest, ImportModel } from "@api/model";
-import LoadingButton from "@mui/lab/LoadingButton";
-import Button from "@mui/material/Button";
-import Dialog from "@mui/material/Dialog";
-import DialogActions from "@mui/material/DialogActions";
-import DialogContent from "@mui/material/DialogContent";
-import DialogTitle from "@mui/material/DialogTitle";
-import Grid from "@mui/material/Grid";
-import Typography from "@mui/material/Typography";
-import { usePrevious, YYYY_MM_DD_MINUSED } from "ish-ui";
-import React, { useCallback, useEffect, useMemo } from "react";
-import { connect } from "react-redux";
-import { Dispatch } from "redux";
-import { destroy, Field, FieldArray, getFormValues, initialize, InjectedFormProps, reduxForm } from "redux-form";
-import { interruptProcess } from "../../../../../common/actions";
-import instantFetchErrorHandler from "../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler";
-import DataTypeRenderer from "../../../../../common/components/form/DataTypeRenderer";
-import { ProcessState } from "../../../../../common/reducers/processReducer";
-import { validateSingleMandatoryField } from "../../../../../common/utils/validation";
-import { State } from "../../../../../reducers/state";
-import { getEntityItemById } from "../../../../entities/common/entityItemsService";
-import { runImport } from "../actions";
+import { Binding, ExecuteImportRequest, ImportModel } from '@api/model';
+import LoadingButton from '@mui/lab/LoadingButton';
+import Button from '@mui/material/Button';
+import Dialog from '@mui/material/Dialog';
+import DialogActions from '@mui/material/DialogActions';
+import DialogContent from '@mui/material/DialogContent';
+import DialogTitle from '@mui/material/DialogTitle';
+import Grid from '@mui/material/Grid';
+import Typography from '@mui/material/Typography';
+import { usePrevious, YYYY_MM_DD_MINUSED } from 'ish-ui';
+import React, { useCallback, useEffect, useMemo } from 'react';
+import { connect } from 'react-redux';
+import { Dispatch } from 'redux';
+import { destroy, Field, FieldArray, getFormValues, initialize, InjectedFormProps, reduxForm } from 'redux-form';
+import { interruptProcess } from '../../../../../common/actions';
+import { IAction } from '../../../../../common/actions/IshAction';
+import instantFetchErrorHandler from '../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
+import DataTypeRenderer from '../../../../../common/components/form/DataTypeRenderer';
+import { ProcessState } from '../../../../../common/reducers/processReducer';
+import { validateSingleMandatoryField } from '../../../../../common/utils/validation';
+import { State } from '../../../../../reducers/state';
+import { getEntityItemById } from '../../../../entities/common/entityItemsService';
+import { runImport } from '../actions';
const FORM = "ExecuteImportForm";
@@ -32,7 +33,7 @@ interface Props {
importId?: number;
resetForm?: () => void;
initializeForm?: any;
- dispatch?: Dispatch;
+ dispatch?: Dispatch;
values?: any;
classes?: any;
submitting?: boolean;
diff --git a/client-html/src/js/containers/automation/containers/import-templates/containers/ImportTemplatesForm.tsx b/client-html/src/js/containers/automation/containers/import-templates/containers/ImportTemplatesForm.tsx
index a13e8997ef3..de379ec32e6 100644
--- a/client-html/src/js/containers/automation/containers/import-templates/containers/ImportTemplatesForm.tsx
+++ b/client-html/src/js/containers/automation/containers/import-templates/containers/ImportTemplatesForm.tsx
@@ -6,31 +6,32 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { ImportModel } from "@api/model";
-import DeleteForever from "@mui/icons-material/DeleteForever";
-import FileCopy from "@mui/icons-material/FileCopy";
-import PlayArrow from "@mui/icons-material/PlayArrow";
-import Grid from "@mui/material/Grid";
-import Grow from "@mui/material/Grow";
-import IconButton from "@mui/material/IconButton";
-import Tooltip from "@mui/material/Tooltip";
-import Typography from "@mui/material/Typography";
-import { DD_MMM_YYYY_AT_HH_MM_AAAA_SPECIAL, formatRelativeDate, InfoPill, NumberArgFunction } from "ish-ui";
-import React, { useCallback, useMemo, useState } from "react";
-import { Dispatch } from "redux";
-import { FieldArray, Form, initialize, InjectedFormProps } from "redux-form";
-import AppBarActions from "../../../../../common/components/appBar/AppBarActions";
-import RouteChangeConfirm from "../../../../../common/components/dialog/RouteChangeConfirm";
-import FormField from "../../../../../common/components/form/formFields/FormField";
-import AppBarContainer from "../../../../../common/components/layout/AppBarContainer";
-import { getManualLink } from "../../../../../common/utils/getManualLink";
-import { CatalogItemType } from "../../../../../model/common/Catalog";
-import Bindings, { BindingsRenderer } from "../../../components/Bindings";
-import getConfigActions from "../../../components/ImportExportConfig";
-import SaveAsNewAutomationModal from "../../../components/SaveAsNewAutomationModal";
-import { validateKeycode, validateNameForQuotes } from "../../../utils";
-import ScriptCard from "../../scripts/components/cards/CardBase";
-import ExecuteImportModal from "../components/ExecuteImportModal";
+import { ImportModel } from '@api/model';
+import DeleteForever from '@mui/icons-material/DeleteForever';
+import FileCopy from '@mui/icons-material/FileCopy';
+import PlayArrow from '@mui/icons-material/PlayArrow';
+import Grid from '@mui/material/Grid';
+import Grow from '@mui/material/Grow';
+import IconButton from '@mui/material/IconButton';
+import Tooltip from '@mui/material/Tooltip';
+import Typography from '@mui/material/Typography';
+import { DD_MMM_YYYY_AT_HH_MM_AAAA_SPECIAL, formatRelativeDate, InfoPill, NumberArgFunction } from 'ish-ui';
+import React, { useCallback, useMemo, useState } from 'react';
+import { Dispatch } from 'redux';
+import { FieldArray, Form, initialize, InjectedFormProps } from 'redux-form';
+import { IAction } from '../../../../../common/actions/IshAction';
+import AppBarActions from '../../../../../common/components/appBar/AppBarActions';
+import RouteChangeConfirm from '../../../../../common/components/dialog/RouteChangeConfirm';
+import FormField from '../../../../../common/components/form/formFields/FormField';
+import AppBarContainer from '../../../../../common/components/layout/AppBarContainer';
+import { getManualLink } from '../../../../../common/utils/getManualLink';
+import { CatalogItemType } from '../../../../../model/common/Catalog';
+import Bindings, { BindingsRenderer } from '../../../components/Bindings';
+import getConfigActions from '../../../components/ImportExportConfig';
+import SaveAsNewAutomationModal from '../../../components/SaveAsNewAutomationModal';
+import { validateKeycode, validateNameForQuotes } from '../../../utils';
+import ScriptCard from '../../scripts/components/cards/CardBase';
+import ExecuteImportModal from '../components/ExecuteImportModal';
const manualUrl = getManualLink("importing");
const getAuditsUrl = (id: number) => `audit?search=~"ImportTemplate" and entityId == ${id}`;
@@ -40,7 +41,7 @@ interface Props extends InjectedFormProps {
values: any;
history: any;
syncErrors: any;
- dispatch: Dispatch;
+ dispatch: Dispatch
onCreate: (template: ImportModel) => void;
onUpdateInternal: (template: ImportModel) => void;
onUpdate: (template: ImportModel) => void;
diff --git a/client-html/src/js/containers/automation/containers/pdf-backgrounds/containers/PdfBackgroundsForm.tsx b/client-html/src/js/containers/automation/containers/pdf-backgrounds/containers/PdfBackgroundsForm.tsx
index 33f5b17e7ff..9f466e94e75 100644
--- a/client-html/src/js/containers/automation/containers/pdf-backgrounds/containers/PdfBackgroundsForm.tsx
+++ b/client-html/src/js/containers/automation/containers/pdf-backgrounds/containers/PdfBackgroundsForm.tsx
@@ -6,23 +6,24 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { ReportOverlay } from "@api/model";
-import DeleteForever from "@mui/icons-material/DeleteForever";
-import LoadingButton from "@mui/lab/LoadingButton";
-import Button from "@mui/material/Button";
-import Grid from "@mui/material/Grid";
-import { FilePreview, usePrevious } from "ish-ui";
-import React, { useCallback, useEffect, useRef, useState } from "react";
-import { Dispatch } from "redux";
-import { change, Form, initialize, InjectedFormProps } from "redux-form";
-import { showMessage } from "../../../../../common/actions";
-import AppBarActions from "../../../../../common/components/appBar/AppBarActions";
-import RouteChangeConfirm from "../../../../../common/components/dialog/RouteChangeConfirm";
-import FormField from "../../../../../common/components/form/formFields/FormField";
-import Uneditable from "../../../../../common/components/form/formFields/Uneditable";
-import AppBarContainer from "../../../../../common/components/layout/AppBarContainer";
-import { getManualLink } from "../../../../../common/utils/getManualLink";
-import { PDF_BACKGROUND_FORM_NAME } from "../PdfBackgrounds";
+import { ReportOverlay } from '@api/model';
+import DeleteForever from '@mui/icons-material/DeleteForever';
+import LoadingButton from '@mui/lab/LoadingButton';
+import Button from '@mui/material/Button';
+import Grid from '@mui/material/Grid';
+import { FilePreview, usePrevious } from 'ish-ui';
+import React, { useCallback, useEffect, useRef, useState } from 'react';
+import { Dispatch } from 'redux';
+import { change, Form, initialize, InjectedFormProps } from 'redux-form';
+import { showMessage } from '../../../../../common/actions';
+import { IAction } from '../../../../../common/actions/IshAction';
+import AppBarActions from '../../../../../common/components/appBar/AppBarActions';
+import RouteChangeConfirm from '../../../../../common/components/dialog/RouteChangeConfirm';
+import FormField from '../../../../../common/components/form/formFields/FormField';
+import Uneditable from '../../../../../common/components/form/formFields/Uneditable';
+import AppBarContainer from '../../../../../common/components/layout/AppBarContainer';
+import { getManualLink } from '../../../../../common/utils/getManualLink';
+import { PDF_BACKGROUND_FORM_NAME } from '../PdfBackgrounds';
const manualUrl = getManualLink("print-backgrounds");
@@ -30,7 +31,7 @@ interface Props extends InjectedFormProps {
isNew: boolean;
loading: boolean;
values: ReportOverlay;
- dispatch: Dispatch;
+ dispatch: Dispatch
onCreate: (fileName: string, overlay: File) => void;
onUpdate: (fileName: string, id: number, overlay: File) => void;
onDelete: (id: number) => void;
@@ -61,7 +62,7 @@ const PdfBackgroundsForm = React.memo(
const [fileIsChosen, setFileIsChosen] = useState(false);
const [chosenFileName, setChosenFileName] = useState(null);
- const fileRef = useRef();
+ const fileRef = useRef(undefined);
const prevId = usePrevious(values.id);
diff --git a/client-html/src/js/containers/automation/containers/pdf-reports/containers/PdfReportsForm.tsx b/client-html/src/js/containers/automation/containers/pdf-reports/containers/PdfReportsForm.tsx
index 094b6202dbe..242f505ffbe 100644
--- a/client-html/src/js/containers/automation/containers/pdf-reports/containers/PdfReportsForm.tsx
+++ b/client-html/src/js/containers/automation/containers/pdf-reports/containers/PdfReportsForm.tsx
@@ -6,36 +6,37 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { Report } from "@api/model";
-import DeleteForever from "@mui/icons-material/DeleteForever";
-import DeleteOutlineRoundedIcon from "@mui/icons-material/DeleteOutlineRounded";
-import FileCopy from "@mui/icons-material/FileCopy";
-import FullscreenIcon from "@mui/icons-material/Fullscreen";
-import Button from "@mui/material/Button";
-import Grid from "@mui/material/Grid";
-import Grow from "@mui/material/Grow";
-import IconButton from "@mui/material/IconButton";
-import Tooltip from "@mui/material/Tooltip";
-import Typography from "@mui/material/Typography";
-import { FilePreview, InfoPill, NumberArgFunction, ShowConfirmCaller, usePrevious } from "ish-ui";
-import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { Dispatch } from "redux";
-import { change, FieldArray, Form, initialize, InjectedFormProps } from "redux-form";
-import AppBarActions from "../../../../../common/components/appBar/AppBarActions";
-import RouteChangeConfirm from "../../../../../common/components/dialog/RouteChangeConfirm";
-import FormField from "../../../../../common/components/form/formFields/FormField";
-import Uneditable from "../../../../../common/components/form/formFields/Uneditable";
-import AppBarContainer from "../../../../../common/components/layout/AppBarContainer";
-import { createAndDownloadFile } from "../../../../../common/utils/common";
-import { getManualLink } from "../../../../../common/utils/getManualLink";
-import { CatalogItemType } from "../../../../../model/common/Catalog";
-import { CommonListItem } from "../../../../../model/common/sidebar";
-import { EntityItems } from "../../../../../model/entities/common";
-import Bindings, { BindingsRenderer } from "../../../components/Bindings";
-import getConfigActions from "../../../components/ImportExportConfig";
-import SaveAsNewAutomationModal from "../../../components/SaveAsNewAutomationModal";
-import { validateKeycode, validateNameForQuotes } from "../../../utils";
-import { reportFullScreenPreview } from "../actions";
+import { Report } from '@api/model';
+import DeleteForever from '@mui/icons-material/DeleteForever';
+import DeleteOutlineRoundedIcon from '@mui/icons-material/DeleteOutlineRounded';
+import FileCopy from '@mui/icons-material/FileCopy';
+import FullscreenIcon from '@mui/icons-material/Fullscreen';
+import Button from '@mui/material/Button';
+import Grid from '@mui/material/Grid';
+import Grow from '@mui/material/Grow';
+import IconButton from '@mui/material/IconButton';
+import Tooltip from '@mui/material/Tooltip';
+import Typography from '@mui/material/Typography';
+import { FilePreview, InfoPill, NumberArgFunction, ShowConfirmCaller, usePrevious } from 'ish-ui';
+import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
+import { Dispatch } from 'redux';
+import { change, FieldArray, Form, initialize, InjectedFormProps } from 'redux-form';
+import { IAction } from '../../../../../common/actions/IshAction';
+import AppBarActions from '../../../../../common/components/appBar/AppBarActions';
+import RouteChangeConfirm from '../../../../../common/components/dialog/RouteChangeConfirm';
+import FormField from '../../../../../common/components/form/formFields/FormField';
+import Uneditable from '../../../../../common/components/form/formFields/Uneditable';
+import AppBarContainer from '../../../../../common/components/layout/AppBarContainer';
+import { createAndDownloadFile } from '../../../../../common/utils/common';
+import { getManualLink } from '../../../../../common/utils/getManualLink';
+import { CatalogItemType } from '../../../../../model/common/Catalog';
+import { CommonListItem } from '../../../../../model/common/sidebar';
+import { EntityItems } from '../../../../../model/entities/common';
+import Bindings, { BindingsRenderer } from '../../../components/Bindings';
+import getConfigActions from '../../../components/ImportExportConfig';
+import SaveAsNewAutomationModal from '../../../components/SaveAsNewAutomationModal';
+import { validateKeycode, validateNameForQuotes } from '../../../utils';
+import { reportFullScreenPreview } from '../actions';
const manualUrl = getManualLink("using-reports");
const getAuditsUrl = (id: number) => `audit?search=~"Report" and entityId == ${id}`;
@@ -43,7 +44,7 @@ const getAuditsUrl = (id: number) => `audit?search=~"Report" and entityId == ${i
interface Props extends InjectedFormProps {
isNew: boolean;
values: Report;
- dispatch: Dispatch;
+ dispatch: Dispatch
onCreate: (report: Report) => void;
onUpdateInternal: (report: Report) => void;
onUpdate: (report: Report) => void;
@@ -64,7 +65,7 @@ const fillAttributes = (
names: string[],
formFields: string[],
document: Document,
- dispatch: Dispatch,
+ dispatch: Dispatch,
form: string
) => {
names.forEach((n, index) => {
@@ -102,7 +103,7 @@ const PdfReportsForm = React.memo(
const [modalOpened, setModalOpened] = useState(false);
const [chosenFileName, setChosenFileName] = useState(null);
- const fileRef = useRef();
+ const fileRef = useRef(undefined);
const isInternal = useMemo(() => values.keyCode && values.keyCode.startsWith("ish."), [values.keyCode]);
diff --git a/client-html/src/js/containers/automation/containers/scripts/components/ExecuteScriptModal.tsx b/client-html/src/js/containers/automation/containers/scripts/components/ExecuteScriptModal.tsx
index b9ffecff4d5..e6c9e5343e7 100644
--- a/client-html/src/js/containers/automation/containers/scripts/components/ExecuteScriptModal.tsx
+++ b/client-html/src/js/containers/automation/containers/scripts/components/ExecuteScriptModal.tsx
@@ -3,37 +3,37 @@
* No copying or use of this code is allowed without permission in writing from ish.
*/
-import { Binding, ExecuteScriptRequest, OutputType, Script, SearchQuery } from "@api/model";
-import LoadingButton from "@mui/lab/LoadingButton";
-import { Alert } from "@mui/material";
-import Button from "@mui/material/Button";
-import Dialog from "@mui/material/Dialog";
-import DialogActions from "@mui/material/DialogActions";
-import DialogContent from "@mui/material/DialogContent";
-import DialogTitle from "@mui/material/DialogTitle";
-import Grid from "@mui/material/Grid";
-import Typography from "@mui/material/Typography";
-import { format } from "date-fns";
-import { III_DD_MMM_YYYY_HH_MM, usePrevious, YYYY_MM_DD_MINUSED } from "ish-ui";
-import React, { useCallback, useEffect, useMemo, useState } from "react";
-import { connect } from "react-redux";
-import { Dispatch } from "redux";
-import { destroy, Field, FieldArray, getFormValues, initialize, InjectedFormProps, reduxForm } from "redux-form";
-import { interruptProcess } from "../../../../../common/actions";
-import instantFetchErrorHandler from "../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler";
-import DataTypeRenderer from "../../../../../common/components/form/DataTypeRenderer";
+import { Binding, ExecuteScriptRequest, OutputType, Script, SearchQuery } from '@api/model';
+import LoadingButton from '@mui/lab/LoadingButton';
+import { Alert, Grid } from '@mui/material';
+import Button from '@mui/material/Button';
+import Dialog from '@mui/material/Dialog';
+import DialogActions from '@mui/material/DialogActions';
+import DialogContent from '@mui/material/DialogContent';
+import DialogTitle from '@mui/material/DialogTitle';
+import Typography from '@mui/material/Typography';
+import { format } from 'date-fns';
+import { III_DD_MMM_YYYY_HH_MM, usePrevious, YYYY_MM_DD_MINUSED } from 'ish-ui';
+import React, { useCallback, useEffect, useMemo, useState } from 'react';
+import { connect } from 'react-redux';
+import { Dispatch } from 'redux';
+import { destroy, Field, FieldArray, getFormValues, initialize, InjectedFormProps, reduxForm } from 'redux-form';
+import { interruptProcess } from '../../../../../common/actions';
+import { IAction } from '../../../../../common/actions/IshAction';
+import instantFetchErrorHandler from '../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
+import DataTypeRenderer from '../../../../../common/components/form/DataTypeRenderer';
import ScriptRunAudit
- from "../../../../../common/components/layout/swipeable-sidebar/components/SidebarScripts/ScriptRunAudit";
-import { getExpression } from "../../../../../common/components/list-view/utils/listFiltersUtils";
-import { ProcessState } from "../../../../../common/reducers/processReducer";
-import EntityService from "../../../../../common/services/EntityService";
-import { getCookie } from "../../../../../common/utils/Cookie";
-import { validateSingleMandatoryField } from "../../../../../common/utils/validation";
-import { LICENSE_SCRIPTING_KEY } from "../../../../../constants/Config";
-import { State } from "../../../../../reducers/state";
-import RecipientsSelectionSwitcher from "../../../../entities/messages/components/RecipientsSelectionSwitcher";
-import { runScript } from "../actions";
-import ScriptsService from "../services/ScriptsService";
+ from '../../../../../common/components/layout/swipeable-sidebar/components/SidebarScripts/ScriptRunAudit';
+import { getExpression } from '../../../../../common/components/list-view/utils/listFiltersUtils';
+import { ProcessState } from '../../../../../common/reducers/processReducer';
+import EntityService from '../../../../../common/services/EntityService';
+import { getCookie } from '../../../../../common/utils/Cookie';
+import { validateSingleMandatoryField } from '../../../../../common/utils/validation';
+import { LICENSE_SCRIPTING_KEY } from '../../../../../constants/Config';
+import { State } from '../../../../../reducers/state';
+import RecipientsSelectionSwitcher from '../../../../entities/messages/components/RecipientsSelectionSwitcher';
+import { runScript } from '../actions';
+import ScriptsService from '../services/ScriptsService';
const FORM = "ExecuteScriptForm";
@@ -47,7 +47,7 @@ interface Props {
scriptId?: number;
resetForm?: () => void;
initializeForm?: any;
- dispatch?: Dispatch;
+ dispatch?: Dispatch;
values?: Script;
classes?: any;
filteredCount?: number;
diff --git a/client-html/src/js/containers/automation/containers/scripts/components/cards/CardsRenderer.tsx b/client-html/src/js/containers/automation/containers/scripts/components/cards/CardsRenderer.tsx
index 1e61a2bd551..b2c085b9f44 100644
--- a/client-html/src/js/containers/automation/containers/scripts/components/cards/CardsRenderer.tsx
+++ b/client-html/src/js/containers/automation/containers/scripts/components/cards/CardsRenderer.tsx
@@ -3,29 +3,30 @@
* No copying or use of this code is allowed without permission in writing from ish.
*/
-import { Binding } from "@api/model";
-import EmailOutlinedIcon from "@mui/icons-material/EmailOutlined";
-import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
-import StackedLineChartIcon from "@mui/icons-material/StackedLineChart";
-import { FormControlLabel } from "@mui/material";
-import Grid from "@mui/material/Grid";
-import IconButton from "@mui/material/IconButton";
-import Typography from "@mui/material/Typography";
-import clsx from "clsx";
-import { ShowConfirmCaller } from "ish-ui";
-import React, { useCallback, useMemo } from "react";
-import { DragDropContext, Draggable, Droppable } from "react-beautiful-dnd-next";
-import { Dispatch } from "redux";
-import { WrappedFieldArrayProps } from "redux-form";
-import ScriptIcon from "../../../../../../../images/icon-script.svg";
-import FormField from "../../../../../../common/components/form/formFields/FormField";
-import { ScriptComponent, ScriptExtended } from "../../../../../../model/scripts";
-import { getType } from "../../utils";
-import AddScriptAction from "../AddScriptAction";
-import ScriptCard from "./CardBase";
-import MessageCardContent from "./MessageCardContent";
-import QueryCardContent from "./QueryCardContent";
-import ReportCardContent from "./ReportCardContent";
+import { Binding } from '@api/model';
+import EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';
+import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
+import StackedLineChartIcon from '@mui/icons-material/StackedLineChart';
+import { FormControlLabel } from '@mui/material';
+import Grid from '@mui/material/Grid';
+import IconButton from '@mui/material/IconButton';
+import Typography from '@mui/material/Typography';
+import clsx from 'clsx';
+import { ShowConfirmCaller } from 'ish-ui';
+import React, { useCallback, useMemo } from 'react';
+import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd-next';
+import { Dispatch } from 'redux';
+import { WrappedFieldArrayProps } from 'redux-form';
+import ScriptIcon from '../../../../../../../images/icon-script.svg';
+import { IAction } from '../../../../../../common/actions/IshAction';
+import FormField from '../../../../../../common/components/form/formFields/FormField';
+import { ScriptComponent, ScriptExtended } from '../../../../../../model/scripts';
+import { getType } from '../../utils';
+import AddScriptAction from '../AddScriptAction';
+import ScriptCard from './CardBase';
+import MessageCardContent from './MessageCardContent';
+import QueryCardContent from './QueryCardContent';
+import ReportCardContent from './ReportCardContent';
const onDragEnd = ({ destination, source, fields }) => {
if (destination && destination.index !== source.index) {
@@ -34,7 +35,7 @@ const onDragEnd = ({ destination, source, fields }) => {
};
interface Props {
- dispatch: Dispatch;
+ dispatch: Dispatch
classes: any;
showConfirm: ShowConfirmCaller;
hasUpdateAccess: boolean;
diff --git a/client-html/src/js/containers/automation/containers/scripts/components/cards/MessageCardContent.tsx b/client-html/src/js/containers/automation/containers/scripts/components/cards/MessageCardContent.tsx
index 9e6bf184d73..b6a1ef23be7 100644
--- a/client-html/src/js/containers/automation/containers/scripts/components/cards/MessageCardContent.tsx
+++ b/client-html/src/js/containers/automation/containers/scripts/components/cards/MessageCardContent.tsx
@@ -6,30 +6,31 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*/
-import { CustomFieldType } from "@api/model";
-import Grid from "@mui/material/Grid";
-import Typography from "@mui/material/Typography";
-import { Switch } from "ish-ui";
-import React, { useMemo, } from "react";
-import { connect } from "react-redux";
-import { Dispatch } from "redux";
-import { change, getFormValues } from "redux-form";
-import instantFetchErrorHandler from "../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler";
-import FormField from "../../../../../../common/components/form/formFields/FormField";
-import { validateEmail } from "../../../../../../common/utils/validation";
-import { ADMIN_EMAIL_KEY } from "../../../../../../constants/Config";
-import { COMMON_PLACEHOLDER } from "../../../../../../constants/Forms";
-import { CatalogItemType } from "../../../../../../model/common/Catalog";
-import { ScriptComponent, ScriptExtended } from "../../../../../../model/scripts";
-import { State } from "../../../../../../reducers/state";
-import { renderAutomationItems } from "../../../../utils";
-import EmailTemplateService from "../../../email-templates/services/EmailTemplateService";
+import { CustomFieldType } from '@api/model';
+import Grid from '@mui/material/Grid';
+import Typography from '@mui/material/Typography';
+import { Switch } from 'ish-ui';
+import React, { useMemo, } from 'react';
+import { connect } from 'react-redux';
+import { Dispatch } from 'redux';
+import { change, getFormValues } from 'redux-form';
+import { IAction } from '../../../../../../common/actions/IshAction';
+import instantFetchErrorHandler from '../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
+import FormField from '../../../../../../common/components/form/formFields/FormField';
+import { validateEmail } from '../../../../../../common/utils/validation';
+import { ADMIN_EMAIL_KEY } from '../../../../../../constants/Config';
+import { COMMON_PLACEHOLDER } from '../../../../../../constants/Forms';
+import { CatalogItemType } from '../../../../../../model/common/Catalog';
+import { ScriptComponent, ScriptExtended } from '../../../../../../model/scripts';
+import { State } from '../../../../../../reducers/state';
+import { renderAutomationItems } from '../../../../utils';
+import EmailTemplateService from '../../../email-templates/services/EmailTemplateService';
interface Props {
name: string;
emailTemplates: CatalogItemType[];
field: ScriptComponent;
- dispatch: Dispatch;
+ dispatch: Dispatch
form: string;
renderVariables: any;
disabled: boolean;
diff --git a/client-html/src/js/containers/automation/containers/scripts/components/cards/ReportCardContent.tsx b/client-html/src/js/containers/automation/containers/scripts/components/cards/ReportCardContent.tsx
index 96bf8f06701..bcec1e7605a 100644
--- a/client-html/src/js/containers/automation/containers/scripts/components/cards/ReportCardContent.tsx
+++ b/client-html/src/js/containers/automation/containers/scripts/components/cards/ReportCardContent.tsx
@@ -3,21 +3,22 @@
* No copying or use of this code is allowed without permission in writing from ish.
*/
-import Grid from "@mui/material/Grid";
-import React, { useMemo } from "react";
-import { Dispatch } from "redux";
-import { change } from "redux-form";
-import instantFetchErrorHandler from "../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler";
-import FormField from "../../../../../../common/components/form/formFields/FormField";
-import { useAppSelector } from "../../../../../../common/utils/hooks";
-import { ScriptComponent } from "../../../../../../model/scripts";
-import { renderAutomationItems } from "../../../../utils";
-import PdfService from "../../../pdf-reports/services/PdfService";
+import Grid from '@mui/material/Grid';
+import React, { useMemo } from 'react';
+import { Dispatch } from 'redux';
+import { change } from 'redux-form';
+import { IAction } from '../../../../../../common/actions/IshAction';
+import instantFetchErrorHandler from '../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
+import FormField from '../../../../../../common/components/form/formFields/FormField';
+import { useAppSelector } from '../../../../../../common/utils/hooks';
+import { ScriptComponent } from '../../../../../../model/scripts';
+import { renderAutomationItems } from '../../../../utils';
+import PdfService from '../../../pdf-reports/services/PdfService';
interface Props {
name: string;
field: ScriptComponent;
- dispatch: Dispatch;
+ dispatch: Dispatch
form: string;
renderVariables: any;
disabled: boolean;
diff --git a/client-html/src/js/containers/automation/containers/scripts/components/cards/TriggerCardContent.tsx b/client-html/src/js/containers/automation/containers/scripts/components/cards/TriggerCardContent.tsx
index bce1778b2de..d6eca2a635c 100644
--- a/client-html/src/js/containers/automation/containers/scripts/components/cards/TriggerCardContent.tsx
+++ b/client-html/src/js/containers/automation/containers/scripts/components/cards/TriggerCardContent.tsx
@@ -3,21 +3,22 @@
* No copying or use of this code is allowed without permission in writing from ish.
*/
-import { Script, TagRequirementType, TriggerType } from "@api/model";
-import * as Entities from "@aql/queryLanguageModel";
-import Help from "@mui/icons-material/Help";
-import IconButton from "@mui/material/IconButton";
-import { mapSelectItems, SelectItemDefault, TagInputList } from "ish-ui";
-import React, { useEffect, useState } from "react";
-import { Dispatch } from "redux";
-import { change } from "redux-form";
-import instantFetchErrorHandler from "../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler";
-import FormField from "../../../../../../common/components/form/formFields/FormField";
-import { useAppSelector } from "../../../../../../common/utils/hooks";
-import { CatalogItemType } from "../../../../../../model/common/Catalog";
-import { getEntityTags } from "../../../../../tags/actions";
-import TagsService from "../../../../../tags/services/TagsService";
-import { AQL_ENTITY_ITEMS } from "../../../../constants";
+import { Script, TagRequirementType, TriggerType } from '@api/model';
+import * as Entities from '@aql/queryLanguageModel';
+import Help from '@mui/icons-material/Help';
+import IconButton from '@mui/material/IconButton';
+import { mapSelectItems, SelectItemDefault, TagInputList } from 'ish-ui';
+import React, { useEffect, useState } from 'react';
+import { Dispatch } from 'redux';
+import { change } from 'redux-form';
+import { IAction } from '../../../../../../common/actions/IshAction';
+import instantFetchErrorHandler from '../../../../../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
+import FormField from '../../../../../../common/components/form/formFields/FormField';
+import { useAppSelector } from '../../../../../../common/utils/hooks';
+import { CatalogItemType } from '../../../../../../model/common/Catalog';
+import { getEntityTags } from '../../../../../tags/actions';
+import TagsService from '../../../../../tags/services/TagsService';
+import { AQL_ENTITY_ITEMS } from '../../../../constants';
// Filter AbstractInvoice and include Quote
const AllEntities = [
@@ -35,7 +36,7 @@ interface Props {
enableEntityNameField: boolean;
values: Script;
isInternal: boolean;
- dispatch: Dispatch;
+ dispatch: Dispatch
form: string;
timeZone: string;
classes: any;
diff --git a/client-html/src/js/containers/avetmiss-export/containers/AvetmissExportForm.tsx b/client-html/src/js/containers/avetmiss-export/containers/AvetmissExportForm.tsx
index 7e9e1ce2123..59a22d76d27 100644
--- a/client-html/src/js/containers/avetmiss-export/containers/AvetmissExportForm.tsx
+++ b/client-html/src/js/containers/avetmiss-export/containers/AvetmissExportForm.tsx
@@ -36,6 +36,7 @@ import { Dispatch } from 'redux';
import { arrayPush, arrayRemove, change, getFormValues, initialize, InjectedFormProps, reduxForm } from 'redux-form';
import { withStyles } from 'tss-react/mui';
import { interruptProcess } from '../../../common/actions';
+import { IAction } from '../../../common/actions/IshAction';
import FormField from '../../../common/components/form/formFields/FormField';
import AppBarContainer from '../../../common/components/layout/AppBarContainer';
import { getManualLink } from '../../../common/utils/getManualLink';
@@ -311,7 +312,7 @@ interface Props {
values?: any;
enrolmentsCount?: number;
data?: any;
- dispatch?: Dispatch;
+ dispatch?: Dispatch;
classes?: any;
outcomes?: any;
exportID?: string;
diff --git a/client-html/src/js/containers/batch-payment/BatchPayment.tsx b/client-html/src/js/containers/batch-payment/BatchPayment.tsx
index 7fb6dcbbe10..0c0bb9b1646 100644
--- a/client-html/src/js/containers/batch-payment/BatchPayment.tsx
+++ b/client-html/src/js/containers/batch-payment/BatchPayment.tsx
@@ -33,6 +33,7 @@ import AutoSizer from 'react-virtualized-auto-sizer';
import { areEqual } from 'react-window';
import { Dispatch } from 'redux';
import { change, FieldArray, getFormValues, InjectedFormProps, reduxForm, } from 'redux-form';
+import { IAction } from '../../common/actions/IshAction';
import instantFetchErrorHandler from '../../common/api/fetch-errors-handlers/InstantFetchErrorHandler';
import FormField from '../../common/components/form/formFields/FormField';
import AppBarContainer from '../../common/components/layout/AppBarContainer';
@@ -305,7 +306,7 @@ const ContactRenderer = ({
};
interface Props {
- dispatch?: Dispatch;
+ dispatch?: Dispatch;
currencySymbol?: string;
values?: {
contacts: BatchPaymentContact[]
diff --git a/client-html/src/js/containers/checkout/components/RestartButton.tsx b/client-html/src/js/containers/checkout/components/RestartButton.tsx
index 2707850787b..5856c30c03f 100644
--- a/client-html/src/js/containers/checkout/components/RestartButton.tsx
+++ b/client-html/src/js/containers/checkout/components/RestartButton.tsx
@@ -9,7 +9,9 @@
import Button from "@mui/material/Button";
import React from "react";
import { useDispatch } from "react-redux";
+import { Dispatch } from 'redux';
import { reset } from "redux-form";
+import { IAction } from '../../../common/actions/IshAction';
import { checkoutClearState } from "../actions";
import { checkoutGetActivePaymentMethods } from "../actions/checkoutPayment";
import { FORM as SELECTION_FORM } from "./CheckoutSelection";
@@ -17,7 +19,7 @@ import { CHECKOUT_FUNDING_INVOICE_SUMMARY_LIST_FORM } from "./fundingInvoice/Che
import { CHECKOUT_SUMMARY_FORM as SUMMARRY_FORM } from "./summary/CheckoutSummaryList";
const RestartButton: React.FC = () => {
- const dispatch = useDispatch();
+ const dispatch = useDispatch>();
return (