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
@@ -15,7 +15,7 @@
*/
import React from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { Alert } from '@material-ui/lab';
import { Box } from '@material-ui/core';
import { useApi } from '@backstage/core-plugin-api';
@@ -15,8 +15,8 @@
*/
import { useEffect, useState } from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useAsync from 'react-use/esm/useAsync';
import useAsyncFn from 'react-use/esm/useAsyncFn';
import {
GetLatestReleaseResult,
GetRepositoryResult,
@@ -15,7 +15,7 @@
*/
import React, { useState } from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { Alert, AlertTitle } from '@material-ui/lab';
import {
Box,
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { useEffect, useState } from 'react';
import {
@@ -15,8 +15,8 @@
*/
import { useApi } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useAsync from 'react-use/esm/useAsync';
import useAsyncFn from 'react-use/esm/useAsyncFn';
import React from 'react';
import { CalverTagParts } from '../../../helpers/tagParts/getCalverTagParts';
@@ -15,8 +15,8 @@
*/
import { useState, useEffect } from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useAsync from 'react-use/esm/useAsync';
import useAsyncFn from 'react-use/esm/useAsyncFn';
import {
CardHook,
ComponentConfig,
@@ -16,7 +16,7 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import {
FormControl,
FormHelperText,
@@ -15,7 +15,7 @@
*/
import React from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { useNavigate } from 'react-router-dom';
import {
FormControl,
@@ -15,8 +15,8 @@
*/
import { useEffect, useState } from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useAsync from 'react-use/esm/useAsync';
import useAsyncFn from 'react-use/esm/useAsyncFn';
import { DateTime } from 'luxon';
import { getReleaseCommitPairs } from '../helpers/getReleaseCommitPairs';
@@ -15,7 +15,7 @@
*/
import React from 'react';
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { DateTime } from 'luxon';
import { Box, Typography } from '@material-ui/core';
import { Alert } from '@material-ui/lab';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import useAsync from 'react-use/lib/useAsync';
import useAsync from 'react-use/esm/useAsync';
import { gitReleaseManagerApiRef } from '../../../api/serviceApiRef';
import { useProjectContext } from '../../../contexts/ProjectContext';
@@ -15,7 +15,7 @@
*/
import { useEffect } from 'react';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import useAsyncFn from 'react-use/esm/useAsyncFn';
import { GitReleaseApi } from '../api/GitReleaseClient';
import { Project } from '../contexts/ProjectContext';