This commit is contained in:
Fred Carlsen
2018-11-30 13:36:01 +01:00
parent 4456ba0f6a
commit 929eb45699

View File

@@ -44,7 +44,7 @@ const PARAGRAPH_SIZES: ParagraphSizes = {
default: '18px',
medium: '22px',
large: '28px',
}
};
const StyledHeading = styled.h1<HeadingProps>`
color: ${props => props.color || colors.white};
@@ -60,7 +60,7 @@ export const Heading: React.StatelessComponent<HeadingProps> = props => {
} = props;
const Component = StyledHeading.withComponent(asElement);
return <Component {...props}>{ children }</Component>;
return <Component {...props}>{children}</Component>;
};
// No need to declare it twice as Styled then rewrap as a stateless comp