aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-19 16:32:53 +0800
committerAugust Skare <post@augustskare.no>2018-11-19 16:32:53 +0800
commit0b46f44ad37afb17341b394b16e3317e3bbbd285 (patch)
treea489a25e1223fb2ebd3dcb15828abc89a8d42208 /packages/dev-tools-pages/ts
parentb811b51af934111f69e30b7ac19b36eda9d29e93 (diff)
downloaddexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar.gz
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar.bz2
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar.lz
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar.xz
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.tar.zst
dexon-sol-tools-0b46f44ad37afb17341b394b16e3317e3bbbd285.zip
fix typings for components in header
Diffstat (limited to 'packages/dev-tools-pages/ts')
-rw-r--r--packages/dev-tools-pages/ts/components/Header.tsx9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/dev-tools-pages/ts/components/Header.tsx b/packages/dev-tools-pages/ts/components/Header.tsx
index 153746aef..94714c0af 100644
--- a/packages/dev-tools-pages/ts/components/Header.tsx
+++ b/packages/dev-tools-pages/ts/components/Header.tsx
@@ -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 };