diff --git a/src/BursarExportPlugin.tsx b/src/BursarExportPlugin.tsx index 7056106f..ed477910 100644 --- a/src/BursarExportPlugin.tsx +++ b/src/BursarExportPlugin.tsx @@ -1,8 +1,8 @@ import { Button, LoadingPane, Pane, PaneFooter } from '@folio/stripes/components'; -import { useStripes } from '@folio/stripes/core'; +import { useStripes, TitleManager } from '@folio/stripes/core'; import { FormApi } from 'final-form'; import React, { useCallback, useRef } from 'react'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, useIntl } from 'react-intl'; import { formValuesToDto, schedulingToDto } from './api/dto/to'; import { useAutomaticSchedulerMutation, useManualSchedulerMutation } from './api/mutators'; import ConfigurationForm from './components/ConfigurationForm'; @@ -11,6 +11,7 @@ import useInitialValues from './hooks/useInitialValues'; import { FormValues } from './types'; export default function BursarExportPlugin() { + const intl = useIntl(); const stripes = useStripes(); const initialValues = useInitialValues(); @@ -71,17 +72,19 @@ export default function BursarExportPlugin() { } return ( - } - > - - + + } + > + + + ); } diff --git a/test/__mocks__/stripes-core.mock.ts b/test/__mocks__/stripes-core.mock.ts index 3ea74abc..b5678615 100644 --- a/test/__mocks__/stripes-core.mock.ts +++ b/test/__mocks__/stripes-core.mock.ts @@ -19,6 +19,7 @@ jest.mock('@folio/stripes/core', () => { } }), Pluggable: jest.fn(({ children }) => [children]), + TitleManager: jest.fn(({ children }) => children), useOkapiKy: jest.fn(), useStripes: jest.fn(() => STRIPES), }; diff --git a/translations/ui-plugin-bursar-export/en.json b/translations/ui-plugin-bursar-export/en.json index c0a6f86c..e004eea7 100644 --- a/translations/ui-plugin-bursar-export/en.json +++ b/translations/ui-plugin-bursar-export/en.json @@ -1,5 +1,6 @@ { "meta.title": "Transfer configuration", + "settings.title": "Users settings - Transfer criteria", "bursarExports.paneTitle": "Transfer configuration",