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
@@ -29,7 +29,7 @@ import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
import { adrDecoratorFactories } from './decorators';
|
||||
import { AdrContentDecorator } from './types';
|
||||
import { adrApiRef } from '../../api';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
/**
|
||||
* Component to fetch and render an ADR.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Link, useSearchParams } from 'react-router-dom';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import useAsync from 'react-use/esm/useAsync';
|
||||
|
||||
import groupBy from 'lodash/groupBy';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user