Type fixes

This commit is contained in:
Fred Carlsen
2018-12-14 20:53:29 +01:00
parent 04d4e797aa
commit f0581285d0
2 changed files with 1 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ const NavItem = (props: { link: NavItem; key: string }) => {
{link.dropdownComponent &&
<DropdownWrap width={link.dropdownWidth}>
<Subnav />
{Subnav}
</DropdownWrap>
}
</LinkWrap>

View File

@@ -49,13 +49,11 @@ export const Heading: React.StatelessComponent<HeadingProps> = props => {
const {
asElement = 'h1',
children,
...style
} = props;
const Component = StyledHeading.withComponent(asElement);
return (
<Component
style={{...style}}
{...props}
>
{children}