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
@@ -27,7 +27,7 @@ import TrendingUpIcon from '@material-ui/icons/TrendingUp';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import { ClassNameMap } from '@material-ui/styles/withStyles';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import {
|
||||
CartesianGrid,
|
||||
Legend,
|
||||
|
||||
@@ -19,7 +19,7 @@ import Paper from '@material-ui/core/Paper';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import { codeCoverageApiRef } from '../../api';
|
||||
import { FileEntry } from '../../types';
|
||||
import { CodeRow } from './CodeRow';
|
||||
|
||||
@@ -22,7 +22,7 @@ import FolderIcon from '@material-ui/icons/Folder';
|
||||
import FileOutlinedIcon from '@material-ui/icons/InsertDriveFileOutlined';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import React, { Fragment, useEffect, useState } from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
import { codeCoverageApiRef } from '../../api';
|
||||
import { FileEntry } from '../../types';
|
||||
import { FileContent } from './FileContent';
|
||||
|
||||
Reference in New Issue
Block a user