remove contentBlock from content component

This commit is contained in:
August Skare
2018-10-22 13:24:43 +02:00
parent 8cf720986e
commit 00afb2440d
6 changed files with 15 additions and 17 deletions

View File

@@ -21,8 +21,6 @@ const StyledMain =
`;
interface MainProps {
title?: string;
subtitle?: string;
dark?: boolean;
children: React.ReactNode;
}
@@ -30,13 +28,7 @@ interface MainProps {
function Main(props: MainProps) {
return (
<StyledMain dark={props.dark}>
<Container>
<ContentBlock main title={props.title || 'Get started'}>
{props.subtitle ? <Beta as="p">{props.subtitle}</Beta> : null}
</ContentBlock>
{props.children}
</Container>
<Container>{props.children}</Container>
</StyledMain>
);
}