From 8c5b31ae1e688c260801ebde086feb713e9fed0a Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Fri, 26 Jul 2024 10:12:25 -0400 Subject: [PATCH] lint --- src/RootWithIntl.js | 1 - src/components/OIDCLanding.js | 2 +- src/components/Root/FFetch.js | 2 +- src/components/Root/FXHR.test.js | 1 - src/components/Root/token-util.test.js | 1 - 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/RootWithIntl.js b/src/RootWithIntl.js index 941d979ca..bbd8af687 100644 --- a/src/RootWithIntl.js +++ b/src/RootWithIntl.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { Router, Switch, - Redirect as InternalRedirect } from 'react-router-dom'; import { Provider } from 'react-redux'; import { CookiesProvider } from 'react-cookie'; diff --git a/src/components/OIDCLanding.js b/src/components/OIDCLanding.js index d72e0805a..8eaf05708 100644 --- a/src/components/OIDCLanding.js +++ b/src/components/OIDCLanding.js @@ -26,7 +26,7 @@ const OIDCLanding = () => { const store = useStore(); // const samlError = useRef(); const { okapi } = useStripes(); - const [potp, setPotp] = useState(); + const [, setPotp] = useState(); const [samlError, setSamlError] = useState(); diff --git a/src/components/Root/FFetch.js b/src/components/Root/FFetch.js index a689523f8..b795b8447 100644 --- a/src/components/Root/FFetch.js +++ b/src/components/Root/FFetch.js @@ -100,7 +100,7 @@ export class FFetch { /** * scheduleRotation * Given a promise that resolves with timestamps for the AT's and RT's - * expiration, configure relevant corresponding timers: + * expiration, configure relevant corresponding timers: * * before the AT expires, conduct RTR * * when the RT is about to expire, send a "session will end" event * * when the RT expires, send a "session ended" event" diff --git a/src/components/Root/FXHR.test.js b/src/components/Root/FXHR.test.js index c5d5efed9..5c52ee602 100644 --- a/src/components/Root/FXHR.test.js +++ b/src/components/Root/FXHR.test.js @@ -1,6 +1,5 @@ import { rtr } from './token-util'; import { getTokenExpiry } from '../../loginServices'; -import { RTRError } from './Errors'; import FXHR from './FXHR'; jest.mock('./token-util', () => ({ diff --git a/src/components/Root/token-util.test.js b/src/components/Root/token-util.test.js index b64cfac73..0ed8cc7fc 100644 --- a/src/components/Root/token-util.test.js +++ b/src/components/Root/token-util.test.js @@ -1,4 +1,3 @@ -import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; import { RTRError, UnexpectedResourceError } from './Errors'; import { configureRtr,