File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
plugins/bulletin-board/src/components/BulletinBoardPage Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' backstage-plugin-bulletin-board ' : minor
3+ ---
4+
5+ Add custom title and subtitle
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ import { FormDialog } from '../FormDialog';
77import { bulletinBoardApiRef , Bulletin } from '../../api'
88import { useApi } from '@backstage/core-plugin-api' ;
99
10- export const BulletinBoardPage = ( ) => {
10+ type BulletinBoardPageProps = {
11+ title ?: string ,
12+ subtitle ?: string
13+ } ;
14+
15+ export const BulletinBoardPage = ( props : BulletinBoardPageProps ) => {
1116 const useStyles = makeStyles ( {
1217 subHeader : {
1318 display : "flex" ,
@@ -137,7 +142,7 @@ export const BulletinBoardPage = () => {
137142
138143 return (
139144 < Page themeId = "home" >
140- < Header title = " Bulletin Board" subtitle = " A basic place to share ideas and links with your team." />
145+ < Header title = { props . title ?? ' Bulletin Board' } subtitle = { props . subtitle ?? ' A basic place to share ideas and links with your team.' } />
141146 < Content >
142147 < FormDialog
143148 status = { open }
You can’t perform that action at this time.
0 commit comments