Type fixes
This commit is contained in:
@@ -116,7 +116,7 @@ const NavItem = (props: { link: NavItem; key: string }) => {
|
||||
|
||||
{link.dropdownComponent &&
|
||||
<DropdownWrap width={link.dropdownWidth}>
|
||||
<Subnav />
|
||||
{Subnav}
|
||||
</DropdownWrap>
|
||||
}
|
||||
</LinkWrap>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user