use styled-components theme in logo insted of color prop
This commit is contained in:
parent
b88e2c5483
commit
b811b51af9
@ -9,11 +9,11 @@ import { Small } from './Typography';
|
|||||||
|
|
||||||
const Header: React.StatelessComponent<{}> = () => (
|
const Header: React.StatelessComponent<{}> = () => (
|
||||||
<ThemeContext.Consumer>
|
<ThemeContext.Consumer>
|
||||||
{({ icon, title, colors }: ContextInterface) => (
|
{({ icon, title }: ContextInterface) => (
|
||||||
<StyledHeader>
|
<StyledHeader>
|
||||||
<Container>
|
<Container>
|
||||||
<LogoMark>
|
<LogoMark>
|
||||||
<Logo as={icon} color={colors.main} />
|
<Logo as={icon} />
|
||||||
<Title>{title}</Title>
|
<Title>{title}</Title>
|
||||||
</LogoMark>
|
</LogoMark>
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ const LogoMark = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledLogo = styled.div`
|
const StyledLogo = styled.div`
|
||||||
color: ${props => props.color};
|
color: ${props => props.theme.colors.main};
|
||||||
width: 1.75rem;
|
width: 1.75rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user