feat(plugins/adr): configurable component header title

Signed-off-by: Axel Koehler <axel@staffbase.com>
This commit is contained in:
Axel Koehler
2023-09-05 15:27:59 +02:00
parent 19c2e46fc5
commit aa844e704a
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-adr': minor
---
configurable component header title
@@ -160,8 +160,9 @@ const AdrListContainer = (props: {
export const EntityAdrContent = (props: {
contentDecorators?: AdrContentDecorator[];
filePathFilterFn?: AdrFilePathFilterFn;
headerTitle?: string;
}) => {
const { contentDecorators, filePathFilterFn } = props;
const { contentDecorators, filePathFilterFn, headerTitle } = props;
const classes = useStyles();
const { entity } = useEntity();
const [adrList, setAdrList] = useState<AdrFileInfo[]>([]);
@@ -214,7 +215,7 @@ export const EntityAdrContent = (props: {
return (
<Content>
<ContentHeader title="Architecture Decision Records">
<ContentHeader title={headerTitle ?? 'Architecture Decision Records'}>
{appSupportConfigured && <SupportButton />}
</ContentHeader>