Merge pull request #8694 from backstage/rugvip/use

use precise imports of react-use hooks
This commit is contained in:
Patrik Oldsberg
2022-01-03 11:18:48 +01:00
committed by GitHub
165 changed files with 235 additions and 174 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { useCallback, useMemo } from 'react';
import { useAsyncRetry } from 'react-use';
import useAsyncRetry from 'react-use/lib/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';
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
import { circleCIApiRef } from '../api';
import type { CITableBuildInfo } from '../components/BuildsPage/lib/CITable';
import { CIRCLECI_ANNOTATION } from '../constants';