allow customization of bazaar title and subtitle

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2023-01-13 16:11:07 +00:00
parent 61ee43ad5b
commit 35f7332d61
@@ -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 (
<div>
<Header title="Bazaar" subtitle="Marketplace for inner source projects" />
<Header
title={title || 'Bazaar'}
subtitle={subtitle || 'Marketplace for inner source projects'}
/>
<RoutedTabs routes={tabContent} />
</div>
);