Skip to content

Commit

Permalink
Implemented TitleManager component
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hellen committed May 14, 2024
1 parent 5c4dd92 commit 6fc77d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/BursarExportPlugin.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -71,6 +71,8 @@ export default function BursarExportPlugin() {
}

return (
<>
<TitleManager page={useIntl().formatMessage({ id: "Users settings - Transfer criteria" })}></TitleManager>

Check failure on line 75 in src/BursarExportPlugin.tsx

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Empty components are self-closing

Check failure on line 75 in src/BursarExportPlugin.tsx

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Expected indentation of 6 space characters but found 4

Check failure on line 75 in src/BursarExportPlugin.tsx

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

React Hook "useIntl" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?

Check failure on line 75 in src/BursarExportPlugin.tsx

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Strings must use singlequote
<Pane

Check failure on line 76 in src/BursarExportPlugin.tsx

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Expected indentation of 6 space characters but found 4
defaultWidth="fill"
footer={footer}
Expand All @@ -83,5 +85,6 @@ export default function BursarExportPlugin() {
formApiRef={formApiRef}
/>
</Pane>
</>
);
}

0 comments on commit 6fc77d4

Please sign in to comment.