From 35f7332d61b69444cf913366d8937755f3e225fe Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Fri, 13 Jan 2023 16:11:07 +0000 Subject: [PATCH] allow customization of bazaar title and subtitle Signed-off-by: Brian Fletcher --- .../bazaar/src/components/HomePage/HomePage.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/bazaar/src/components/HomePage/HomePage.tsx b/plugins/bazaar/src/components/HomePage/HomePage.tsx index cec7171c20..fec2bf2d6f 100644 --- a/plugins/bazaar/src/components/HomePage/HomePage.tsx +++ b/plugins/bazaar/src/components/HomePage/HomePage.tsx @@ -19,7 +19,14 @@ import { Header, RoutedTabs } from '@backstage/core-components'; import { SortView } from '../SortView'; import { About } from '../About'; -export const HomePage = () => { +export type HomePageProps = { + title?: string; + subtitle?: string; +}; + +export const HomePage = (props: HomePageProps) => { + const { title, subtitle } = props; + const tabContent = [ { path: '/', @@ -35,7 +42,10 @@ export const HomePage = () => { return (
-
+
);