Use esm exports from react-use library

Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
Tomasz Szuba
2024-03-15 10:23:57 +01:00
committed by Tomasz Szuba
parent 7825762f90
commit e8f026a300
268 changed files with 379 additions and 293 deletions
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';