Merge pull request #8694 from backstage/rugvip/use
use precise imports of react-use hooks
This commit is contained in:
@@ -17,7 +17,7 @@ import React from 'react';
|
||||
import { Box, makeStyles, Typography } from '@material-ui/core';
|
||||
import { newRelicDashboardApiRef } from '../../api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import {
|
||||
Progress,
|
||||
InfoCard,
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
import React from 'react';
|
||||
import { Box, Grid } from '@material-ui/core';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import {
|
||||
InfoCard,
|
||||
Progress,
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import React, { useState } from 'react';
|
||||
import { Grid, Tab, Tabs, makeStyles } from '@material-ui/core';
|
||||
import { newRelicDashboardApiRef } from '../../../api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { Progress, ErrorPanel } from '@backstage/core-components';
|
||||
import { DashboardSnapshot } from './DashboardSnapshot';
|
||||
import { DashboardEntitySummary } from '../../../api/NewRelicDashboardApi';
|
||||
|
||||
Reference in New Issue
Block a user