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
@@ -25,7 +25,7 @@ import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { userSettingsTranslationRef } from '../../translation';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import useObservable from 'react-use/lib/useObservable';
|
||||
import useObservable from 'react-use/esm/useObservable';
|
||||
import { Select } from '@backstage/core-components';
|
||||
|
||||
const useStyles = makeStyles(theme => ({
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React, { cloneElement } from 'react';
|
||||
import useObservable from 'react-use/lib/useObservable';
|
||||
import useObservable from 'react-use/esm/useObservable';
|
||||
import AutoIcon from '@material-ui/icons/BrightnessAuto';
|
||||
import ToggleButton from '@material-ui/lab/ToggleButton';
|
||||
import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup';
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
useApi,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { useEffect } from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
/** @public */
|
||||
export const useUserProfile = () => {
|
||||
|
||||
Reference in New Issue
Block a user