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
@@ -30,7 +30,7 @@ import TrendingUpIcon from '@material-ui/icons/TrendingUp';
import { Alert } from '@material-ui/lab';
import { ClassNameMap } from '@material-ui/styles';
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import {
CartesianGrid,
Legend,
@@ -18,7 +18,7 @@ import { useEntity } from '@backstage/plugin-catalog-react';
import { makeStyles, Paper } from '@material-ui/core';
import { Alert } from '@material-ui/lab';
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { codeCoverageApiRef } from '../../api';
import { FileEntry } from '../../types';
import { CodeRow } from './CodeRow';
@@ -26,7 +26,7 @@ import {
import DescriptionIcon from '@material-ui/icons/Description';
import { Alert } from '@material-ui/lab';
import React, { Fragment, useEffect, useState } from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { codeCoverageApiRef } from '../../api';
import { FileEntry } from '../../types';
import { FileContent } from './FileContent';