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
+1
-1
@@ -20,7 +20,7 @@ import { useApi } from '@backstage/core-plugin-api';
|
||||
import { EntityRefLink } from '@backstage/plugin-catalog-react';
|
||||
import { EntityRatingsData } from '@backstage/plugin-entity-feedback-common';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
import { entityFeedbackApiRef } from '../../api';
|
||||
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import {
|
||||
Typography,
|
||||
} from '@material-ui/core';
|
||||
import React, { ReactNode, useState } from 'react';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
|
||||
import { entityFeedbackApiRef } from '../../api';
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import { FeedbackResponse } from '@backstage/plugin-entity-feedback-common';
|
||||
import { Chip, makeStyles } from '@material-ui/core';
|
||||
import CheckIcon from '@material-ui/icons/Check';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
import { entityFeedbackApiRef } from '../../api';
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ import ThumbUpIcon from '@material-ui/icons/ThumbUp';
|
||||
import ThumbDownOutlinedIcon from '@material-ui/icons/ThumbDownOutlined';
|
||||
import ThumbUpOutlinedIcon from '@material-ui/icons/ThumbUpOutlined';
|
||||
import React, { ReactNode, useCallback, 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 { entityFeedbackApiRef } from '../../api';
|
||||
import {
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@ import { IconButton } from '@material-ui/core';
|
||||
import StarOutlineIcon from '@material-ui/icons/StarOutline';
|
||||
import StarIcon from '@material-ui/icons/Star';
|
||||
import React, { ReactNode, useCallback, 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 { entityFeedbackApiRef } from '../../api';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user