fix typings for components in header

This commit is contained in:
August Skare
2018-11-19 09:32:53 +01:00
parent b811b51af9
commit 0b46f44ad3

View File

@@ -13,7 +13,7 @@ const Header: React.StatelessComponent<{}> = () => (
<StyledHeader>
<Container>
<LogoMark>
<Logo as={icon} />
<Logo as={icon as 'svg'} />
<Title>{title}</Title>
</LogoMark>
@@ -50,7 +50,7 @@ const LogoMark = styled.div`
align-items: center;
`;
const StyledLogo = styled.div`
const Logo = styled.div`
color: ${props => props.theme.colors.main};
width: 1.75rem;
height: 100%;
@@ -67,13 +67,10 @@ const Title = styled.h1`
${media.small`font-size: 1.25rem;`};
`;
const StyledLink = styled(Small)`
const Link = styled(Small)`
:hover {
text-decoration: underline;
}
`;
const Link = StyledLink as any;
const Logo = StyledLogo as any;
export { Header };