Use esm exports from react-use library

Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
Tomasz Szuba
2024-03-15 10:23:57 +01:00
committed by Tomasz Szuba
parent 7825762f90
commit e8f026a300
268 changed files with 379 additions and 293 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { useCallback, useMemo } from 'react';
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
import { circleCIApiRef } from '../api';
import { useAsyncPolling } from './useAsyncPolling';
import { useProjectSlugFromEntity, mapVcsType } from './useBuilds';
+1 -1
View File
@@ -18,7 +18,7 @@ import { useEntity } from '@backstage/plugin-catalog-react';
import { BuildSummary, GitType } from 'circleci-api';
import { getOr } from 'lodash/fp';
import { useCallback, useEffect, useState } from 'react';
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
import { circleCIApiRef } from '../api';
import type { CITableBuildInfo } from '../components/BuildsPage/lib/CITable';
import { CIRCLECI_ANNOTATION } from '../constants';