aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/ContentBlock.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-10-22 19:24:43 +0800
committerAugust Skare <post@augustskare.no>2018-10-22 19:27:49 +0800
commit00afb2440dfe41f19c40030de60ffd274a782a04 (patch)
treea7eb9abaa2b1769ba33e79ff50b4cee89335d2e4 /packages/dev-tools-pages/ts/components/ContentBlock.tsx
parent8cf720986eb464a39e634ca59c4c3b20b3cd368d (diff)
downloaddexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar.gz
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar.bz2
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar.lz
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar.xz
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.tar.zst
dexon-sol-tools-00afb2440dfe41f19c40030de60ffd274a782a04.zip
remove contentBlock from content component
Diffstat (limited to 'packages/dev-tools-pages/ts/components/ContentBlock.tsx')
-rw-r--r--packages/dev-tools-pages/ts/components/ContentBlock.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/dev-tools-pages/ts/components/ContentBlock.tsx b/packages/dev-tools-pages/ts/components/ContentBlock.tsx
index fcd85830e..fa558e9ab 100644
--- a/packages/dev-tools-pages/ts/components/ContentBlock.tsx
+++ b/packages/dev-tools-pages/ts/components/ContentBlock.tsx
@@ -29,13 +29,12 @@ const Item = styled.div`
const StyledTitle = styled(Alpha)`
color: ${props => props.color};
- margin-bottom: 6.25rem;
`;
interface ContentBlockProps extends Props {
title: string;
main?: boolean;
- children: React.ReactNode;
+ children?: React.ReactNode;
}
function ContentBlock(props: ContentBlockProps) {
@@ -48,7 +47,7 @@ function ContentBlock(props: ContentBlockProps) {
return (
<Base>
<Title color={props.colors.main}>{props.title}</Title>
- <Content>{children}</Content>
+ {children ? <Content>{children}</Content> : null}
</Base>
);
}