Skip to content

Commit

Permalink
feat: Add height theme prop to ShopLogo
Browse files Browse the repository at this point in the history
Signed-off-by: Loan Laux <loan@outgrow.io>
  • Loading branch information
loan-laux committed Mar 3, 2019
1 parent 2fe1eca commit 0754206
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/src/components/ShopLogo/v1/ShopLogo.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React, { Component } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import { addTypographyStyles } from "../../../utils";
import { addTypographyStyles, applyTheme } from "../../../utils";

const Container = styled.div`
${addTypographyStyles("ShopLogo", "titleTextBold")}
`;

const Logo = styled.img`
height: ${applyTheme("ShopLogo.height")};
`;

export default class ShopLogo extends Component {
static propTypes = {
/**
Expand All @@ -26,7 +30,7 @@ export default class ShopLogo extends Component {
}

render() {
const { className, shopLogoUrl, shopName } = this.props;
const { className, height, shopLogoUrl, shopName } = this.props;

return (
<Container className={className}>
Expand Down

0 comments on commit 0754206

Please sign in to comment.