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
+1
-1
@@ -41,7 +41,7 @@ import { ClusterAttributes } from '@backstage/plugin-kubernetes-common';
|
||||
import { ManifestYaml } from './ManifestYaml';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { kubernetesClusterLinkFormatterApiRef } from '../../api';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
const useDrawerStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import { kubernetesProxyApiRef } from '../../../api/types';
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
import { ContainerScope } from './types';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { AsyncState } from 'react-use/lib/useAsync';
|
||||
import { AsyncState } from 'react-use/esm/useAsync';
|
||||
|
||||
export const useIsPodExecTerminalSupported: () => AsyncState<boolean> = jest.fn(
|
||||
() => ({ loading: false, value: false } as AsyncState<boolean>),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { useCallback } from 'react';
|
||||
import useInterval from 'react-use/lib/useInterval';
|
||||
import useInterval from 'react-use/esm/useInterval';
|
||||
import {
|
||||
CustomResourceMatcher,
|
||||
ObjectsByEntityResponse,
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { KubernetesObjects } from './useKubernetesObjects';
|
||||
import { generateAuth } from './auth';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { kubernetesAuthProvidersApiRef } from '../kubernetes-auth-provider';
|
||||
import { kubernetesApiRef } from '../api/types';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import useAsync, { AsyncState } from 'react-use/lib/useAsync';
|
||||
import useAsync, { AsyncState } from 'react-use/esm/useAsync';
|
||||
|
||||
import { kubernetesApiRef } from '../api/types';
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { useCallback } from 'react';
|
||||
import useInterval from 'react-use/lib/useInterval';
|
||||
import useInterval from 'react-use/esm/useInterval';
|
||||
import { ObjectsByEntityResponse } from '@backstage/plugin-kubernetes-common';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { generateAuth } from './auth';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useAsyncRetry from 'react-use/esm/useAsyncRetry';
|
||||
import { kubernetesAuthProvidersApiRef } from '../kubernetes-auth-provider';
|
||||
import { kubernetesApiRef } from '../api/types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user