From 90965cb56abc9cb91d43108690e55f87c7bf8f80 Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Fri, 4 Mar 2022 12:08:10 +0100 Subject: [PATCH] fixups Signed-off-by: Emma Indal --- .../stack-overflow/src/home/StackOverflowQuestions/Content.tsx | 2 +- .../StackOverflowSearchResultListItem.stories.tsx | 1 - .../StackOverflowSearchResultListItem.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/stack-overflow/src/home/StackOverflowQuestions/Content.tsx b/plugins/stack-overflow/src/home/StackOverflowQuestions/Content.tsx index a0832fc1f1..cf74de05f9 100644 --- a/plugins/stack-overflow/src/home/StackOverflowQuestions/Content.tsx +++ b/plugins/stack-overflow/src/home/StackOverflowQuestions/Content.tsx @@ -24,7 +24,7 @@ import { ListItemSecondaryAction, } from '@material-ui/core'; import OpenInNewIcon from '@material-ui/icons/OpenInNew'; -import { useAsync } from 'react-use'; +import useAsync from 'react-use/lib/useAsync'; import qs from 'qs'; import React from 'react'; import { diff --git a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.stories.tsx b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.stories.tsx index 171a6203ef..1239cabcbe 100644 --- a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.stories.tsx +++ b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.stories.tsx @@ -17,7 +17,6 @@ import { StackOverflowSearchResultListItem } from '../../plugin'; import { wrapInTestApp } from '@backstage/test-utils'; import React, { ComponentType } from 'react'; -import OpenInNewIcon from '@material-ui/icons/OpenInNew'; export default { title: 'Plugins/Search/StackOverflowResultListItem', diff --git a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx index 52c16eeb77..c793939593 100644 --- a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx +++ b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx @@ -37,7 +37,7 @@ export const StackOverflowSearchResultListItem = ( const { location, title, text, answers, tags } = props.result; return ( - + {props.icon && {props.icon}}