Skip to content

Commit 421fd73

Browse files
committed
chore: add nav item for the plugin
1 parent 9bbf628 commit 421fd73

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugins/qeta/src/alpha.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
ApiBlueprint,
33
createFrontendPlugin,
4+
NavItemBlueprint,
45
PageBlueprint,
56
} from '@backstage/frontend-plugin-api';
67
import {
@@ -11,6 +12,7 @@ import {
1112
import { qetaApiRef, qetaRouteRef } from '@drodil/backstage-plugin-qeta-react';
1213
import { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';
1314
import { QetaClient } from '@drodil/backstage-plugin-qeta-common';
15+
import LiveHelpIcon from '@material-ui/icons/LiveHelp';
1416
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
1517

1618
const qetaApi = ApiBlueprint.make({
@@ -56,6 +58,15 @@ const EntityPostsContainerCard = EntityCardBlueprint.make({
5658
},
5759
});
5860

61+
/** @alpha */
62+
export const qetaNavItem = NavItemBlueprint.make({
63+
params: {
64+
title: 'Q&A',
65+
routeRef: convertLegacyRouteRef(qetaRouteRef),
66+
icon: LiveHelpIcon,
67+
},
68+
});
69+
5970
/**
6071
* Backstage frontend plugin.
6172
*
@@ -72,6 +83,7 @@ export default createFrontendPlugin({
7283
qetaPage,
7384
EntityPostsGridCard,
7485
EntityPostsContainerCard,
86+
qetaNavItem,
7587
],
7688
});
7789

0 commit comments

Comments
 (0)