Move SearchResultPager from @backstage/plugin-search to @backstage/plugin-search-react and deprecate it in @backstage/plugin-search

Signed-off-by: Anders Näsman <andersn@spotify.com>
This commit is contained in:
Anders Näsman
2022-06-01 16:50:03 +02:00
committed by Eric Peterson
parent 01abb3bc7e
commit 193ae37f15
8 changed files with 150 additions and 1 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ export const SearchResult: ({
// Warning: (ae-missing-release-tag) "SearchResultPager" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public @deprecated (undocumented)
export const SearchResultPager: () => JSX.Element;
// Warning: (ae-missing-release-tag) "SearchType" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -29,6 +29,9 @@ const useStyles = makeStyles(theme => ({
},
}));
/**
* @deprecated Moved to `@backstage/plugin-search-react`.
*/
export const SearchResultPager = () => {
const { fetchNextPage, fetchPreviousPage } = useSearch();
const classes = useStyles();