From aa844e704a326cc0b546285839129a0997b3e519 Mon Sep 17 00:00:00 2001 From: Axel Koehler Date: Tue, 5 Sep 2023 15:27:59 +0200 Subject: [PATCH] feat(plugins/adr): configurable component header title Signed-off-by: Axel Koehler --- .changeset/plenty-lamps-pump.md | 5 +++++ .../adr/src/components/EntityAdrContent/EntityAdrContent.tsx | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/plenty-lamps-pump.md diff --git a/.changeset/plenty-lamps-pump.md b/.changeset/plenty-lamps-pump.md new file mode 100644 index 0000000000..4ba45ce7ef --- /dev/null +++ b/.changeset/plenty-lamps-pump.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-adr': minor +--- + +configurable component header title diff --git a/plugins/adr/src/components/EntityAdrContent/EntityAdrContent.tsx b/plugins/adr/src/components/EntityAdrContent/EntityAdrContent.tsx index 32e353eba9..027da2aa67 100644 --- a/plugins/adr/src/components/EntityAdrContent/EntityAdrContent.tsx +++ b/plugins/adr/src/components/EntityAdrContent/EntityAdrContent.tsx @@ -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([]); @@ -214,7 +215,7 @@ export const EntityAdrContent = (props: { return ( - + {appSupportConfigured && }