Skip to content

Commit

Permalink
Added the HomepageTimer to the new composable Home Page
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
  • Loading branch information
Andre Wanlin committed Sep 7, 2021
1 parent 96f2392 commit bcf312f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-mangos-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---

Added the HomepageTimer to the new composable Home Page
11 changes: 9 additions & 2 deletions plugins/home/src/components/HomepageCompositionRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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>
);
Expand Down

0 comments on commit bcf312f

Please sign in to comment.