Merge pull request #1782 from twishasaraiya/techdocs/docs-header

techdocs: modify documentation header
This commit is contained in:
Sebastian Qvarfordt
2020-07-30 16:48:18 +02:00
committed by GitHub
3 changed files with 17 additions and 4 deletions
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { Header, Content } from '@backstage/core';
import { Header, Content, Page, pageTheme } from '@backstage/core';
type TechDocsPageWrapperProps = {
title: string;
@@ -29,9 +29,9 @@ export const TechDocsPageWrapper = ({
subtitle,
}: TechDocsPageWrapperProps) => {
return (
<>
<Page theme={pageTheme.documentation}>
<Header title={title} subtitle={subtitle} />
<Content>{children}</Content>
</>
</Page>
);
};