From c3798fd6bdfcc89ebdac5d61a61db0f0efdfc7ae Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Wed, 1 Feb 2023 09:17:32 +0100 Subject: [PATCH] update api reports Signed-off-by: Emma Indal --- plugins/explore/api-report.md | 2 ++ plugins/search-react/api-report.md | 1 + .../components/DefaultResultListItem/DefaultResultListItem.tsx | 2 +- .../src/components/SearchResultList/SearchResultList.test.tsx | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/explore/api-report.md b/plugins/explore/api-report.md index e7adde4b77..02b917b9ed 100644 --- a/plugins/explore/api-report.md +++ b/plugins/explore/api-report.md @@ -139,5 +139,7 @@ export interface ToolSearchResultListItemProps { rank?: number; // (undocumented) result?: IndexableDocument; + // (undocumented) + toggleModal?: () => void; } ``` diff --git a/plugins/search-react/api-report.md b/plugins/search-react/api-report.md index ccf7a72e33..0d6598feca 100644 --- a/plugins/search-react/api-report.md +++ b/plugins/search-react/api-report.md @@ -55,6 +55,7 @@ export type DefaultResultListItemProps = { highlight?: ResultHighlight; rank?: number; lineClamp?: number; + toggleModal?: () => void; }; // @public (undocumented) diff --git a/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx b/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx index eef7f799a6..cf89b6a9cd 100644 --- a/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx +++ b/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx @@ -26,7 +26,7 @@ import Typography from '@material-ui/core/Typography'; import { Link } from '@backstage/core-components'; /** - * Props for {@link DefaultResultListItemComponent} + * Props for {@link DefaultResultListItem} * * @public */ diff --git a/plugins/search-react/src/components/SearchResultList/SearchResultList.test.tsx b/plugins/search-react/src/components/SearchResultList/SearchResultList.test.tsx index 941493aea1..a0f5bc7830 100644 --- a/plugins/search-react/src/components/SearchResultList/SearchResultList.test.tsx +++ b/plugins/search-react/src/components/SearchResultList/SearchResultList.test.tsx @@ -17,7 +17,6 @@ import React from 'react'; import { screen, waitFor } from '@testing-library/react'; -import { ListItem } from '@material-ui/core'; import { TestApiProvider, renderWithEffects,