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 { 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(): {
|
||||
|
||||
@@ -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(): {
|
||||
|
||||
Reference in New Issue
Block a user