plugins: update all other plugins to fit new frontend system naming patterns
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ const _default: BackstagePlugin<{}, {}>;
|
||||
export default _default;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const ExploreSearchResultListItemExtension: ExtensionDefinition<{
|
||||
export const exploreSearchResultListItem: ExtensionDefinition<{
|
||||
noTrack?: boolean | undefined;
|
||||
}>;
|
||||
|
||||
|
||||
@@ -18,17 +18,16 @@ import { createPlugin } from '@backstage/frontend-plugin-api';
|
||||
import { createSearchResultListItemExtension } from '@backstage/plugin-search-react/alpha';
|
||||
|
||||
/** @alpha */
|
||||
export const ExploreSearchResultListItemExtension =
|
||||
createSearchResultListItemExtension({
|
||||
predicate: result => result.type === 'tools',
|
||||
component: () =>
|
||||
import('./components/ToolSearchResultListItem').then(
|
||||
m => m.ToolSearchResultListItem,
|
||||
),
|
||||
});
|
||||
export const exploreSearchResultListItem = createSearchResultListItemExtension({
|
||||
predicate: result => result.type === 'tools',
|
||||
component: () =>
|
||||
import('./components/ToolSearchResultListItem').then(
|
||||
m => m.ToolSearchResultListItem,
|
||||
),
|
||||
});
|
||||
|
||||
/** @alpha */
|
||||
export default createPlugin({
|
||||
id: 'explore',
|
||||
extensions: [ExploreSearchResultListItemExtension],
|
||||
extensions: [exploreSearchResultListItem],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user