Merge pull request #7029 from awanlin/topic/add-homepagetimer-to-new-homepage

Added the HomepageTimer to the new composable Home Page
This commit is contained in:
Ben Lambert
2021-09-13 17:08:57 +02:00
committed by GitHub
3 changed files with 90 additions and 52 deletions
@@ -16,7 +16,6 @@
import React, { ReactNode } from 'react';
import { useOutlet } from 'react-router';
import { Content, Header, Page } from '@backstage/core-components';
export const HomepageCompositionRoot = (props: {
title?: string;
@@ -24,10 +23,5 @@ export const HomepageCompositionRoot = (props: {
}) => {
const outlet = useOutlet();
const children = props.children ?? outlet;
return (
<Page themeId="home">
<Header title={props.title ?? 'Home'} />
<Content>{children}</Content>
</Page>
);
return <>{children}</>;
};