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 { devToolsApiRef } from '../api';
import { useApi } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { ConfigInfo } from '@backstage/plugin-devtools-common';
export function useConfig(): {
@@ -16,7 +16,7 @@
import { devToolsApiRef } from '../api';
import { useApi } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { ExternalDependency } from '@backstage/plugin-devtools-common';
export function useExternalDependencies(): {
+1 -1
View File
@@ -16,7 +16,7 @@
import { devToolsApiRef } from '../api';
import { useApi } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { DevToolsInfo } from '@backstage/plugin-devtools-common';
export function useInfo(): {