Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: remove whitespace from logo image - closes #374 (#400)
Browse files Browse the repository at this point in the history
* fix: remove whitespace from logo image - closes #374

* test: update snapshot

Co-authored-by: Juan Picado @jotadeveloper <[email protected]>
  • Loading branch information
DanielRuf and juanpicado committed Dec 30, 2019
1 parent d554049 commit 544b999
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Header/HeaderLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';

import Logo from '../Logo';

Expand All @@ -8,7 +9,14 @@ interface Props {

const HeaderLogo: React.FC<Props> = ({ logo }) => {
if (logo) {
return <img alt="logo" height="40px" src={logo} />;
const Wrapper = styled('div')({
fontSize: 0,
});
return (
<Wrapper>
<img alt="logo" height="40px" src={logo} />
</Wrapper>
);
}

return <Logo />;
Expand Down

0 comments on commit 544b999

Please sign in to comment.