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
@@ -34,7 +34,7 @@ import React, {
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
import useDebounce from 'react-use/lib/useDebounce';
|
||||
import useDebounce from 'react-use/esm/useDebounce';
|
||||
|
||||
import { SearchContextProvider, useSearch } from '../../context';
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
|
||||
import { useEffect, useRef } from 'react';
|
||||
import useAsyncFn from 'react-use/lib/useAsyncFn';
|
||||
import useDebounce from 'react-use/lib/useDebounce';
|
||||
import useAsyncFn from 'react-use/esm/useAsyncFn';
|
||||
import useDebounce from 'react-use/esm/useDebounce';
|
||||
|
||||
import { useSearch } from '../../context';
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React, { ReactNode } from 'react';
|
||||
import useAsync, { AsyncState } from 'react-use/lib/useAsync';
|
||||
import useAsync, { AsyncState } from 'react-use/esm/useAsync';
|
||||
import { isFunction } from 'lodash';
|
||||
|
||||
import {
|
||||
|
||||
@@ -22,8 +22,8 @@ import React, {
|
||||
useEffect,
|
||||
useState,
|
||||
} from 'react';
|
||||
import useAsync, { AsyncState } from 'react-use/lib/useAsync';
|
||||
import usePrevious from 'react-use/lib/usePrevious';
|
||||
import useAsync, { AsyncState } from 'react-use/esm/useAsync';
|
||||
import usePrevious from 'react-use/esm/usePrevious';
|
||||
|
||||
import {
|
||||
createVersionedContext,
|
||||
|
||||
Reference in New Issue
Block a user