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
@@ -21,7 +21,7 @@ import {
} from '@backstage/plugin-catalog-react';
import React, { useState } from 'react';
import { useBitriseBuildWorkflows } from '../../hooks/useBitriseBuildWorkflows';
import { AsyncState } from 'react-use/lib/useAsync';
import { AsyncState } from 'react-use/esm/useAsync';
import { BitriseBuildsTable } from '../BitriseBuildsTableComponent';
import { Item, Select } from '../Select';
import { Content, ContentHeader, Page } from '@backstage/core-components';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { BitriseBuildArtifactDetails } from '../api/bitriseApi.model';
import { bitriseApiRef } from '../plugin';
import { useApi } from '@backstage/core-plugin-api';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { BitriseBuildArtifact } from '../api/bitriseApi.model';
import { bitriseApiRef } from '../plugin';
import { useApi } from '@backstage/core-plugin-api';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync, { AsyncState } from 'react-use/lib/useAsync';
import useAsync, { AsyncState } from 'react-use/esm/useAsync';
import { bitriseApiRef } from '../plugin';
import { BitriseApp } from '../api/bitriseApi.model';
import { useApi } from '@backstage/core-plugin-api';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync, { AsyncState } from 'react-use/lib/useAsync';
import useAsync, { AsyncState } from 'react-use/esm/useAsync';
import {
BitriseApp,
BitriseBuildListResponse,