chore(deps): bump react-use from 14.2.0 to 15.3.3
This is a copy of #1731 with fixes
This commit is contained in:
committed by
Fredrik Adelöw
parent
d15cc81c75
commit
14cfeb390e
@@ -30,7 +30,7 @@
|
||||
"react-dom": "^16.13.1",
|
||||
"react-markdown": "^4.3.1",
|
||||
"react-router-dom": "6.0.0-beta.0",
|
||||
"react-use": "^14.2.0"
|
||||
"react-use": "^15.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.1.1-alpha.16",
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
useApi,
|
||||
} from '@backstage/core';
|
||||
|
||||
import { lighthouseApiRef, WebsiteListResponse } from '../../api';
|
||||
import { lighthouseApiRef } from '../../api';
|
||||
import { useQuery } from '../../utils';
|
||||
import LighthouseSupportButton from '../SupportButton';
|
||||
import LighthouseIntro, { LIGHTHOUSE_INTRO_LOCAL_STORAGE } from '../Intro';
|
||||
@@ -50,7 +50,7 @@ const AuditList: FC<{}> = () => {
|
||||
: 1;
|
||||
|
||||
const lighthouseApi = useApi(lighthouseApiRef);
|
||||
const { value, loading, error } = useAsync<WebsiteListResponse>(
|
||||
const { value, loading, error } = useAsync(
|
||||
async () =>
|
||||
await lighthouseApi.getWebsiteList({
|
||||
limit: LIMIT,
|
||||
|
||||
@@ -117,7 +117,7 @@ const ConnectedAuditView: FC<{}> = () => {
|
||||
const params = useParams() as { id: string };
|
||||
const classes = useStyles();
|
||||
|
||||
const { loading, error, value: nextValue } = useAsync<Website>(
|
||||
const { loading, error, value: nextValue } = useAsync(
|
||||
async () => await lighthouseApi.getWebsiteForAuditId(params.id),
|
||||
[params.id],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user