techdocs: modify documentation header

This commit is contained in:
Twisha Saraiya
2020-07-30 14:45:21 +05:30
parent 75abb42217
commit 5749c98e3f
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>
);
};