aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-19 16:15:50 +0800
committerAugust Skare <post@augustskare.no>2018-11-19 16:15:50 +0800
commitb811b51af934111f69e30b7ac19b36eda9d29e93 (patch)
treed79351866b41556d651432406564ab0b4770f541
parentb88e2c54837c4b9113bfe9e78f30d5bc9e80a86e (diff)
downloaddexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar.gz
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar.bz2
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar.lz
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar.xz
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.tar.zst
dexon-sol-tools-b811b51af934111f69e30b7ac19b36eda9d29e93.zip
use styled-components theme in logo insted of color prop
-rw-r--r--packages/dev-tools-pages/ts/components/Header.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/dev-tools-pages/ts/components/Header.tsx b/packages/dev-tools-pages/ts/components/Header.tsx
index 8c7154623..153746aef 100644
--- a/packages/dev-tools-pages/ts/components/Header.tsx
+++ b/packages/dev-tools-pages/ts/components/Header.tsx
@@ -9,11 +9,11 @@ import { Small } from './Typography';
const Header: React.StatelessComponent<{}> = () => (
<ThemeContext.Consumer>
- {({ icon, title, colors }: ContextInterface) => (
+ {({ icon, title }: ContextInterface) => (
<StyledHeader>
<Container>
<LogoMark>
- <Logo as={icon} color={colors.main} />
+ <Logo as={icon} />
<Title>{title}</Title>
</LogoMark>
@@ -51,7 +51,7 @@ const LogoMark = styled.div`
`;
const StyledLogo = styled.div`
- color: ${props => props.color};
+ color: ${props => props.theme.colors.main};
width: 1.75rem;
height: 100%;
`;