Skip to content

Commit 57a3a2c

Browse files
authored
Merge pull request #24 from felipe-nardon/main
Add custom title and subtitle
2 parents e205349 + 5e7acd3 commit 57a3a2c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.changeset/tame-islands-sparkle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'backstage-plugin-bulletin-board': minor
3+
---
4+
5+
Add custom title and subtitle

plugins/bulletin-board/src/components/BulletinBoardPage/BulletinBoardPage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import { FormDialog } from '../FormDialog';
77
import { bulletinBoardApiRef, Bulletin } from '../../api'
88
import { 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}

0 commit comments

Comments
 (0)