Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
committed by
Tomasz Szuba
parent
7825762f90
commit
e8f026a300
@@ -18,7 +18,7 @@ import { configApiRef, useApi, useApp } from '@backstage/core-plugin-api';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import React from 'react';
|
||||
import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import { codesceneApiRef } from '../../api/api';
|
||||
import { Analysis } from '../../api/types';
|
||||
import { CodeHealthKpisCard } from '../CodeHealthKpisCard/CodeHealthKpisCard';
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
} from '@backstage/core-components';
|
||||
import { useRouteRef, useApi } from '@backstage/core-plugin-api';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import { rootRouteRef } from '../../routes';
|
||||
import { codesceneApiRef } from '../../api/api';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { Analysis } from '../api/types';
|
||||
import { codesceneApiRef } from '../api/api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
export const useAnalyses = (projectId: number) => {
|
||||
const codesceneApi = useApi(codesceneApiRef);
|
||||
|
||||
Reference in New Issue
Block a user