Fix default heading size

This commit is contained in:
Fred Carlsen
2018-12-14 23:16:44 +01:00
parent f6f441cbe6
commit 2adeed38d8

View File

@@ -61,6 +61,10 @@ export const Heading: React.StatelessComponent<HeadingProps> = props => {
);
};
Heading.defaultProps = {
size: 'default',
};
// No need to declare it twice as Styled then rewrap as a stateless comp
// Note: this would be useful to be implemented the same way was "Heading"
// and be more generic. e.g. <Text /> with a props asElement so we can use it