use precise imports of react-use

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-12-30 12:00:06 +01:00
parent a7a9c4f123
commit 4ce51ab0f1
165 changed files with 235 additions and 174 deletions
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { Alert } from '@material-ui/lab';
import { Box } from '@material-ui/core';
import { useApi } from '@backstage/core-plugin-api';
@@ -15,7 +15,8 @@
*/
import { useEffect, useState } from 'react';
import { useAsync, useAsyncFn } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import {
GetLatestReleaseResult,
GetRepositoryResult,
@@ -15,7 +15,7 @@
*/
import React, { useState } from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { Alert, AlertTitle } from '@material-ui/lab';
import {
Box,
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { useEffect, useState } from 'react';
import {
@@ -15,7 +15,8 @@
*/
import { useApi } from '@backstage/core-plugin-api';
import { useAsync, useAsyncFn } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import React from 'react';
import { CalverTagParts } from '../../../helpers/tagParts/getCalverTagParts';
@@ -15,7 +15,8 @@
*/
import { useState, useEffect } from 'react';
import { useAsync, useAsyncFn } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import {
CardHook,
ComponentConfig,
@@ -16,7 +16,7 @@
import React from 'react';
import { useNavigate } from 'react-router';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import {
FormControl,
FormHelperText,
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import { useNavigate } from 'react-router';
import {
FormControl,
@@ -15,7 +15,8 @@
*/
import { useEffect, useState } from 'react';
import { useAsync, useAsyncFn } from 'react-use';
import useAsync from 'react-use/lib/useAsync';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { DateTime } from 'luxon';
import { getReleaseCommitPairs } from '../helpers/getReleaseCommitPairs';
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { useAsync } from 'react-use';
import useAsync from 'react-use/lib/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';
import useAsync from 'react-use/lib/useAsync';
import { gitReleaseManagerApiRef } from '../../../api/serviceApiRef';
import { useProjectContext } from '../../../contexts/ProjectContext';
@@ -15,7 +15,7 @@
*/
import { useEffect } from 'react';
import { useAsyncFn } from 'react-use';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { GitReleaseApi } from '../api/GitReleaseClient';
import { Project } from '../contexts/ProjectContext';