Merge pull request #8694 from backstage/rugvip/use
use precise imports of react-use hooks
This commit is contained in:
@@ -18,7 +18,7 @@ import React from 'react';
|
||||
import { BuildResponse, xcmetricsApiRef } from '../../api';
|
||||
import { Progress, StructuredMetadataTable } from '@backstage/core-components';
|
||||
import { Alert } from '@material-ui/lab';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { formatDuration, formatStatus, formatTime } from '../../utils';
|
||||
import { StatusIcon } from '../StatusIcon';
|
||||
|
||||
@@ -20,7 +20,7 @@ import FilterList from '@material-ui/icons/FilterList';
|
||||
import { InfoCard, Select } from '@backstage/core-components';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { BuildFilters, BuildStatus, xcmetricsApiRef } from '../../api';
|
||||
import { DatePicker } from '../DatePicker';
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
} from '@backstage/core-components';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { xcmetricsApiRef } from '../../api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { Alert } from '@material-ui/lab';
|
||||
import { StatusMatrix } from '../StatusMatrix';
|
||||
import { Grid } from '@material-ui/core';
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Progress, Select } from '@backstage/core-components';
|
||||
import { Trend } from '../Trend';
|
||||
import { Alert, AlertTitle } from '@material-ui/lab';
|
||||
import { xcmetricsApiRef } from '../../api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { DataValueGridItem } from '../DataValue';
|
||||
import {
|
||||
|
||||
@@ -18,7 +18,7 @@ import React from 'react';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { BuildStatus, BuildStatusResult, xcmetricsApiRef } from '../../api';
|
||||
import { cn, formatDuration, formatStatus } from '../../utils';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { Progress } from '@backstage/core-components';
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@ import React from 'react';
|
||||
import { makeStyles } from '@material-ui/core';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { xcmetricsApiRef } from '../../api';
|
||||
import { useAsync, useMeasure } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useMeasure from 'react-use/lib/useMeasure';
|
||||
import { cn } from '../../utils';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { Alert } from '@material-ui/lab';
|
||||
|
||||
Reference in New Issue
Block a user