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
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React, { useCallback, useState } from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { Entity } from '@backstage/catalog-model';
import { useEntity } from '@backstage/plugin-catalog-react';
import {
@@ -24,7 +24,7 @@ import {
} from '@material-ui/core';
import { EscalationUsersEmptyState } from './EscalationUsersEmptyState';
import { EscalationUser } from './EscalationUser';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { splunkOnCallApiRef } from '../../api';
import { Alert } from '@material-ui/lab';
import { User } from '../types';
@@ -31,7 +31,7 @@ import { DateTime, Duration } from 'luxon';
import { Incident, IncidentPhase } from '../types';
import OpenInBrowserIcon from '@material-ui/icons/OpenInBrowser';
import { splunkOnCallApiRef } from '../../api/client';
import { useAsyncFn } from 'react-use';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { TriggerAlarmRequest } from '../../api/types';
import {
@@ -24,7 +24,7 @@ import {
} from '@material-ui/core';
import { IncidentListItem } from './IncidentListItem';
import { IncidentsEmptyState } from './IncidentEmptyState';
import { useAsyncFn } from 'react-use';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { splunkOnCallApiRef } from '../../api';
import { Alert } from '@material-ui/lab';
@@ -32,7 +32,7 @@ import {
FormControl,
InputLabel,
} from '@material-ui/core';
import { useAsyncFn } from 'react-use';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { splunkOnCallApiRef } from '../../api';
import { Alert } from '@material-ui/lab';
import { TriggerAlarmRequest } from '../../api/types';