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 React, { useEffect, useState } from 'react';
|
||||
import { ProjectPreview } from '../ProjectPreview/ProjectPreview';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import { Entity, stringifyEntityRef } from '@backstage/catalog-model';
|
||||
import { useApi, useRouteRef } from '@backstage/core-plugin-api';
|
||||
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { stringifyEntityRef } from '@backstage/catalog-model';
|
||||
import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
|
||||
@@ -35,7 +35,7 @@ import { useApi, identityApiRef } from '@backstage/core-plugin-api';
|
||||
import { BazaarProject, Member } from '../../types';
|
||||
import { bazaarApiRef } from '../../api';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import ExitToAppIcon from '@material-ui/icons/ExitToApp';
|
||||
import { parseEntityRef } from '@backstage/catalog-model';
|
||||
import { ConfirmationDialog } from '../ConfirmationDialog';
|
||||
|
||||
@@ -44,7 +44,7 @@ import {
|
||||
import { Member, BazaarProject } from '../../types';
|
||||
import { bazaarApiRef } from '../../api';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import { catalogApiRef, entityRouteRef } from '@backstage/plugin-catalog-react';
|
||||
|
||||
import {
|
||||
|
||||
@@ -20,7 +20,7 @@ import { AddProjectDialog } from '../AddProjectDialog';
|
||||
import { ProjectPreview } from '../ProjectPreview/ProjectPreview';
|
||||
import Button from '@material-ui/core/Button';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import { Entity, stringifyEntityRef } from '@backstage/catalog-model';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
||||
|
||||
Reference in New Issue
Block a user