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

Commit 544b999

Browse files
DanielRufjuanpicado
andcommitted
fix: remove whitespace from logo image - closes #374 (#400)
* fix: remove whitespace from logo image - closes #374 * test: update snapshot Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
1 parent d554049 commit 544b999

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/Header/HeaderLogo.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import styled from '@emotion/styled';
23

34
import Logo from '../Logo';
45

@@ -8,7 +9,14 @@ interface Props {
89

910
const HeaderLogo: React.FC<Props> = ({ logo }) => {
1011
if (logo) {
11-
return <img alt="logo" height="40px" src={logo} />;
12+
const Wrapper = styled('div')({
13+
fontSize: 0,
14+
});
15+
return (
16+
<Wrapper>
17+
<img alt="logo" height="40px" src={logo} />
18+
</Wrapper>
19+
);
1220
}
1321

1422
return <Logo />;

0 commit comments

Comments
 (0)