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
@@ -17,7 +17,7 @@ import { DomainEntity } from '@backstage/catalog-model';
import { catalogApiRef } from '@backstage/plugin-catalog-react';
import { Button } from '@material-ui/core';
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { DomainCard } from '../DomainCard';
import {
@@ -39,7 +39,7 @@ import { makeStyles, Typography, useTheme } from '@material-ui/core';
import ZoomOutMap from '@material-ui/icons/ZoomOutMap';
import classNames from 'classnames';
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
const useStyles = makeStyles((theme: BackstageTheme) => ({
graph: {
@@ -16,7 +16,7 @@
import { exploreToolsConfigRef } from '@backstage/plugin-explore-react';
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { ToolCard } from '../ToolCard';
import {