File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
ApiBlueprint ,
3
3
createFrontendPlugin ,
4
+ NavItemBlueprint ,
4
5
PageBlueprint ,
5
6
} from '@backstage/frontend-plugin-api' ;
6
7
import {
@@ -11,6 +12,7 @@ import {
11
12
import { qetaApiRef , qetaRouteRef } from '@drodil/backstage-plugin-qeta-react' ;
12
13
import { discoveryApiRef , fetchApiRef } from '@backstage/core-plugin-api' ;
13
14
import { QetaClient } from '@drodil/backstage-plugin-qeta-common' ;
15
+ import LiveHelpIcon from '@material-ui/icons/LiveHelp' ;
14
16
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha' ;
15
17
16
18
const qetaApi = ApiBlueprint . make ( {
@@ -56,6 +58,15 @@ const EntityPostsContainerCard = EntityCardBlueprint.make({
56
58
} ,
57
59
} ) ;
58
60
61
+ /** @alpha */
62
+ export const qetaNavItem = NavItemBlueprint . make ( {
63
+ params : {
64
+ title : 'Q&A' ,
65
+ routeRef : convertLegacyRouteRef ( qetaRouteRef ) ,
66
+ icon : LiveHelpIcon ,
67
+ } ,
68
+ } ) ;
69
+
59
70
/**
60
71
* Backstage frontend plugin.
61
72
*
@@ -72,6 +83,7 @@ export default createFrontendPlugin({
72
83
qetaPage ,
73
84
EntityPostsGridCard ,
74
85
EntityPostsContainerCard ,
86
+ qetaNavItem ,
75
87
] ,
76
88
} ) ;
77
89
You can’t perform that action at this time.
0 commit comments