Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
committed by
Tomasz Szuba
parent
7825762f90
commit
e8f026a300
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { Alert, AlertAction } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { AlertSource } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { AlertSource, OnCall } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { GetAlertsOpts, ilertApiRef, TableState } from '../api';
|
||||
import { ACCEPTED, Alert, AlertSource, AlertStatus, PENDING } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { Alert, AlertResponder } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { AlertSource } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import React from 'react';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { Schedule } from '../types';
|
||||
import { useApi, errorApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { GetServicesOpts, ilertApiRef, TableState } from '../api';
|
||||
import { Service } from '../types';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import React from 'react';
|
||||
import { ilertApiRef } from '../api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { User, Shift } from '../types';
|
||||
import { useApi, errorApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { AuthenticationError } from '@backstage/errors';
|
||||
import React from 'react';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { GetStatusPagesOpts, ilertApiRef, TableState } from '../api';
|
||||
import { StatusPage } from '../types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user