Added the HomepageTimer to the new composable Home Page

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2021-09-01 07:54:10 -05:00
parent 96f239228a
commit bcf312fa52
2 changed files with 14 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---
Added the HomepageTimer to the new composable Home Page
@@ -16,7 +16,12 @@
import React, { ReactNode } from 'react';
import { useOutlet } from 'react-router';
import { Content, Header, Page } from '@backstage/core-components';
import {
Content,
Header,
Page,
HomepageTimer,
} from '@backstage/core-components';
export const HomepageCompositionRoot = (props: {
title?: string;
@@ -26,7 +31,9 @@ export const HomepageCompositionRoot = (props: {
const children = props.children ?? outlet;
return (
<Page themeId="home">
<Header title={props.title ?? 'Home'} />
<Header title={props.title ?? 'Home'}>
<HomepageTimer />
</Header>
<Content>{children}</Content>
</Page>
);